From 51dff8b1ae74a88a2cc1a871d1821653c1798bf7 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sat, 15 Feb 2025 20:37:31 +0100 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/57034 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca --- test/parallel/test-async-context-frame.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-async-context-frame.mjs b/test/parallel/test-async-context-frame.mjs index 87f0792702f9d5..0cca31cbdf89a5 100644 --- a/test/parallel/test-async-context-frame.mjs +++ b/test/parallel/test-async-context-frame.mjs @@ -49,6 +49,7 @@ describe('AsyncContextFrame', { it(test, async () => { const proc = spawn(python, [ testRunner, + `--mode=${process.features.debug ? 'debug' : 'release'}`, '--node-args=--experimental-async-context-frame', test, ], {