lib: fix default AbortController.abort() message #69732
Annotations
6 errors and 2 notices
|
test-linux (ubuntu-24.04-arm):
test/parallel/test-child-process-exec-abortcontroller-promisified.js#L26
--- stderr ---
node:internal/process/promises:394
triggerUncaughtException(err, true /* fromPromise */);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
+ cause: DOMException [AbortError]: This operation was aborted.
- cause: DOMException [AbortError]: This operation was aborted
at new DOMException (node:internal/per_context/domexception:53:5)
+ at AbortController.abort (node:internal/abort_controller:467:18)
+ at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:26:6)
- at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:24:12)
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,
name: 'AbortError'
}
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: AbortError: The operation was aborted
at abortChildProcess (node:child_process:725:27)
at AbortSignal.onAbortListener (node:child_process:795:7)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
at AbortSignal.dispatchEvent (node:internal/event_target:762:26)
at runAbort (node:internal/abort_controller:449:10)
at abortSignal (node:internal/abort_controller:435:3)
at AbortController.abort (node:internal/abort_controller:468:5)
at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:26:6)
at Module._compile (node:internal/modules/cjs/loader:1734:14)
at Object..js (node:internal/modules/cjs/loader:1899:10) {
code: 'ABORT_ERR',
cmd: 'sleep 2m',
stdout: '',
stderr: '',
[cause]: DOMException [AbortError]: This operation was aborted.
at new DOMException (node:internal/per_context/domexception:53:5)
at AbortController.abort (node:internal/abort_controller:467:18)
at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:26:6)
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)
},
expected: {
name: 'AbortError',
cause: DOMException [AbortError]: This operation was aborted
at new DOMException (node:internal/per_context/domexception:53:5)
at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:24:12)
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
},
op
|
|
test-linux (ubuntu-24.04-arm):
test/parallel/test-runner-output.mjs#L307
--- stdout ---
Test failure: 'test-runner/output/abort.js'
Location: test/parallel/test-runner-output.mjs:316:5
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: promise timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:56:12)
at async Module.spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:91:3)
at async TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-output.mjs:307:5)
at async Test.run (node:internal/test_runner/test:1063:7)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:1454:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:308:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n' +
'# Subtest: promise timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: ok 2\n' +
' ok 2 - ok 2\n' +
'...',
expected: 'TAP version 13\n' +
'# Subtest: promise timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: ok 2\n' +
' ok 2 - ok 2\n' +
'...',
operator: 'strictEqual'
}
Test failure: 'test-runner/output/abort_suite.js'
Location: test/parallel/test-runner-output.mjs:316:5
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: describe timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
"
|
|
test-linux (ubuntu-24.04-arm)
Process completed with exit code 2.
|
|
test-linux (ubuntu-24.04):
test/parallel/test-child-process-exec-abortcontroller-promisified.js#L26
--- stderr ---
node:internal/process/promises:394
triggerUncaughtException(err, true /* fromPromise */);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
+ cause: DOMException [AbortError]: This operation was aborted.
- cause: DOMException [AbortError]: This operation was aborted
at new DOMException (node:internal/per_context/domexception:53:5)
+ at AbortController.abort (node:internal/abort_controller:467:18)
+ at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:26:6)
- at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:24:12)
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,
name: 'AbortError'
}
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: AbortError: The operation was aborted
at abortChildProcess (node:child_process:725:27)
at AbortSignal.onAbortListener (node:child_process:795:7)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
at AbortSignal.dispatchEvent (node:internal/event_target:762:26)
at runAbort (node:internal/abort_controller:449:10)
at abortSignal (node:internal/abort_controller:435:3)
at AbortController.abort (node:internal/abort_controller:468:5)
at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:26:6)
at Module._compile (node:internal/modules/cjs/loader:1734:14)
at Object..js (node:internal/modules/cjs/loader:1899:10) {
code: 'ABORT_ERR',
cmd: 'sleep 2m',
stdout: '',
stderr: '',
[cause]: DOMException [AbortError]: This operation was aborted.
at new DOMException (node:internal/per_context/domexception:53:5)
at AbortController.abort (node:internal/abort_controller:467:18)
at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:26:6)
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)
},
expected: {
name: 'AbortError',
cause: DOMException [AbortError]: This operation was aborted
at new DOMException (node:internal/per_context/domexception:53:5)
at Object.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-child-process-exec-abortcontroller-promisified.js:24:12)
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
},
op
|
|
test-linux (ubuntu-24.04):
test/parallel/test-runner-output.mjs#L307
--- stdout ---
Test failure: 'test-runner/output/abort.js'
Location: test/parallel/test-runner-output.mjs:316:5
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: promise timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:56:12)
at async Module.spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:91:3)
at async TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-output.mjs:307:5)
at async Test.run (node:internal/test_runner/test:1063:7)
at async Promise.all (index 0)
at async Suite.run (node:internal/test_runner/test:1454:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:308:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n' +
'# Subtest: promise timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: ok 2\n' +
' ok 2 - ok 2\n' +
'...',
expected: 'TAP version 13\n' +
'# Subtest: promise timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: ok 2\n' +
' ok 2 - ok 2\n' +
'...',
operator: 'strictEqual'
}
Test failure: 'test-runner/output/abort_suite.js'
Location: test/parallel/test-runner-output.mjs:316:5
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: describe timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' *\n' +
' *\n' +
...
" failureType: 'testAborted'\n" +
+ " error: 'This operation was aborted.'\n" +
- " error: 'This operation was aborted'\n" +
' code: 20\n' +
"
|
|
test-linux (ubuntu-24.04)
Process completed with exit code 2.
|
|
sccache stats
0% - 0 hits, 0 misses, 0 errors
|
|
sccache stats
0% - 0 hits, 0 misses, 0 errors
|