mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test_runner: pass abortSignal to test files
PR-URL: https://github.com/nodejs/node/pull/50630 Fixes: https://github.com/nodejs/node/issues/50583 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
1 parent
12e54e360c
commit
01bed64cbb
2 files changed
+12
-1
No files matched your search
@@ -318,7 +318,7 @@ class FileTest extends Test {
|
||||
|
||||
function runTestFile(path, filesWatcher, opts) {
|
||||
const watchMode = filesWatcher != null;
|
||||
const subtest = opts.root.createSubtest(FileTest, path, async (t) => {
|
||||
const subtest = opts.root.createSubtest(FileTest, path, { __proto__: null, signal: opts.signal }, async (t) => {
|
||||
const args = getRunArgs(path, opts);
|
||||
const stdio = ['pipe', 'pipe', 'pipe'];
|
||||
const env = { __proto__: null, ...process.env, NODE_TEST_CONTEXT: 'child-v8' };
|
||||
|
||||
Reference in new issue
Block a user