Skip to content

Commit 51dff8b

Browse files
joyeecheungtargos
authored andcommitted
test: fix test-without-async-context-frame.mjs in debug mode
The test is spawning the python test runner directly without considering whether the current build is a debug build or not i.e. does not propage the mode parameter when the test is run with --mode=debug, so it always ends up using the release build to run the test even if the test is being run for debug builds. This patch fixes that. PR-URL: #57034 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 7c7e9f4 commit 51dff8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/parallel/test-async-context-frame.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ describe('AsyncContextFrame', {
4949
it(test, async () => {
5050
const proc = spawn(python, [
5151
testRunner,
52+
`--mode=${process.features.debug ? 'debug' : 'release'}`,
5253
'--node-args=--experimental-async-context-frame',
5354
test,
5455
], {

0 commit comments

Comments
 (0)