Skip to content

Commit

Permalink
test: fix async-context-frame tests with --shell
Browse files Browse the repository at this point in the history
Forward execPath as test.py --shell so subprocess tests run with the
same executable as the parent test. Otherwise tests are broken if
out/Debug/node doesn't exist or is a different executble than the caller
intended.
  • Loading branch information
everett1992 authored and Caleb ツ Everett committed Sep 30, 2024
1 parent 8a3482e commit 3acc916
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-async-context-frame.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe('AsyncContextFrame', {
it(test, async () => {
const proc = spawn(python, [
testRunner,
'--shell', process.execPath,
'--node-args=--experimental-async-context-frame',
test,
], {
Expand Down

0 comments on commit 3acc916

Please sign in to comment.