10000 GHA: Try strict unhandle promise handling · davedoesdev/python-jwt@766910c · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 766910c

Browse files
committed
GHA: Try strict unhandle promise handling
1 parent 03e5642 commit 766910c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
2323
- name: Use Node ${{ matrix.node-version }}
2424
uses: actions/setup-node@v2
2525

26-
- name: Test Node exit status
27-
run: node -e 'throw new Error("foo")' || echo $?
28-
2926
- name: Install requirements
3027
run: |
3128
pip install -r requirements.txt

test/jose_interop_vows.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@ def spawn(cmd, parse_json):
1515
""" run node command """
1616
#pylint: disable=E1101
1717
with lock:
18-
p = Popen(["node", "-e", "fixtures=require('./test/fixtures');" + cmd], #pylint: disable=consider-using-with
18+
p = Popen(["node", "--unhandled-rejections=strict", "-e", "fixtures=require('./test/fixtures');" + cmd], #pylint: disable=consider-using-with
1919
stdout=PIPE, stderr=PIPE)
2020
(stdout, stderr) = p.communicate()
2121
stdout = stdout.decode('utf-8')
2222
stderr = stderr.decode('utf-8')
23-
print("stdout: %s" % stdout)
24-
print("stderr: %s" % stderr)
25-
print("returncode: %d" % p.returncode)
2623
if p.returncode == 0:
2724
return json_decode(stdout) if parse_json else stdout
2825
raise Exception(stderr if stderr else ('exited with {}'.format(p.returncode)))

0 commit comments

Comments
 (0)
0