errors: trace unhandled promise rejection location #87449
Annotations
4 errors and 2 notices
|
test-linux (ubuntu-24.04-arm)
Process completed with exit code 2.
|
|
test-linux (ubuntu-24.04-arm):
test/parallel/test-node-output-trace-uncaught.mjs#L19
--- stdout ---
Test failure: 'uncaught/rejection_async_fn_throw_err.js'
Location: test/parallel/test-node-output-trace-uncaught.mjs:18:5
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ '<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1\n' +
+ "const err = new Error('err with wrong stack');\n" +
+ ' ^\n' +
- '<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:6\n' +
- ' throw err;\n' +
- ' ^\n' +
'\n' +
'Error: err with wrong stack\n' +
' at Object.<anonymous> (<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13)\n' +
' at <node-internal-frames>\n' +
'Rejected at:\n' +
+ ' at <project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13\n' +
+ ' at <node-internal-frames>\n' +
- ' at <project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:6:5\n' +
'\n' +
'\n' +
'Node.js <node-version>\n'
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async Module.spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-node-output-trace-uncaught.mjs:19:7)
at async Test.run (node:internal/test_runner/test:1389:7)
at async Suite.processPendingSubtests (node:internal/test_runner/test:960:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1\n' +
"const err = new Error('err with wrong stack');\n" +
' ^\n' +
'\n' +
'Error: err with wrong stack\n' +
' at Object.<anonymous> (<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13)\n' +
' at <node-internal-frames>\n' +
'Rejected at:\n' +
' at <project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13\n' +
' at <node-internal-frames>\n' +
'...',
expected: '<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:6\n' +
' throw err;\n' +
' ^\n' +
'\n' +
'Error: err with wrong stack\n' +
' at Object.<anonymous> (<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13)\n' +
' at <node-internal-frames>\n' +
'Rejected at:\n' +
' at <project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:6:5\n' +
'\n' +
'...',
operator: 'strictEqual',
diff: 'simple'
}
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-node-output-trace-uncaught.mjs
|
|
test-linux (ubuntu-24.04)
Process completed with exit code 2.
|
|
test-linux (ubuntu-24.04):
test/parallel/test-node-output-trace-uncaught.mjs#L19
--- stdout ---
Test failure: 'uncaught/rejection_async_fn_throw_err.js'
Location: test/parallel/test-node-output-trace-uncaught.mjs:18:5
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ '<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1\n' +
+ "const err = new Error('err with wrong stack');\n" +
+ ' ^\n' +
- '<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:6\n' +
- ' throw err;\n' +
- ' ^\n' +
'\n' +
'Error: err with wrong stack\n' +
' at Object.<anonymous> (<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13)\n' +
' at <node-internal-frames>\n' +
'Rejected at:\n' +
+ ' at <project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13\n' +
+ ' at <node-internal-frames>\n' +
- ' at <project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:6:5\n' +
'\n' +
'\n' +
'Node.js <node-version>\n'
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async Module.spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-node-output-trace-uncaught.mjs:19:7)
at async Test.run (node:internal/test_runner/test:1389:7)
at async Suite.processPendingSubtests (node:internal/test_runner/test:960:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1\n' +
"const err = new Error('err with wrong stack');\n" +
' ^\n' +
'\n' +
'Error: err with wrong stack\n' +
' at Object.<anonymous> (<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13)\n' +
' at <node-internal-frames>\n' +
'Rejected at:\n' +
' at <project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13\n' +
' at <node-internal-frames>\n' +
'...',
expected: '<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:6\n' +
' throw err;\n' +
' ^\n' +
'\n' +
'Error: err with wrong stack\n' +
' at Object.<anonymous> (<project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:1:13)\n' +
' at <node-internal-frames>\n' +
'Rejected at:\n' +
' at <project-root>/test/fixtures/uncaught/rejection_async_fn_throw_err.js:6:5\n' +
'\n' +
'...',
operator: 'strictEqual',
diff: 'simple'
}
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-node-output-trace-uncaught.mjs
|
|
sccache stats - test-linux
72% - 3644 hits, 1387 misses, 0 errors
|
|
sccache stats - test-linux
78% - 3944 hits, 1098 misses, 0 errors
|