test_runner: ensure proper teardown when tests run without isolation #68813
Annotations
2 errors and 1 notice
Test:
test/parallel/test-runner-extraneous-async-activity.js#L59
--- stderr ---
node:assert:1110
throw err;
^
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /Error: Test hook "before" at .+async-error-in-test-hook\.mjs:3:1 generated asynchronous activity after the test ended/m. Input:
'✔ ok (0.879691ms)\n' +
'ℹ tests 1\n' +
'ℹ suites 0\n' +
'ℹ pass 1\n' +
'ℹ fail 0\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms 19.417578\n'
at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-runner-extraneous-async-activity.js:59:10)
at Module._compile (node:internal/modules/cjs/loader:1734:14)
at Object..js (node:internal/modules/cjs/loader:1899:10)
at Module.load (node:internal/modules/cjs/loader:1469:32)
at Function._load (node:internal/modules/cjs/loader:1286:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:151:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '✔ ok (0.879691ms)\n' +
'ℹ tests 1\n' +
'ℹ suites 0\n' +
'ℹ pass 1\n' +
'ℹ fail 0\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms 19.417578\n',
expected: /Error: Test hook "before" at .+async-error-in-test-hook\.mjs:3:1 generated asynchronous activity after the test ended/m,
operator: 'match'
}
Node.js v24.0.0-pre
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-runner-extraneous-async-activity.js
|
Test
Process completed with exit code 2.
|
Post Set up sccache
0% - 0 hits, 0 misses, 0 errors
|
Loading