Skip to content

Commit

Permalink
test: fix flaky test-runner-exit-code.js
Browse files Browse the repository at this point in the history
test/parallel/test-runner-exit-code.js failed in a recent CI run
with the following error:

+ actual - expected

+ 'TAP version 13\n' +
+   '# Subtest: /home/iojs/build/workspace/...'
- 'TAP version 13\n'

This commit resolves that flakiness.

Refs: https://ci.nodejs.org/job/node-test-commit-linuxone/35759/
PR-URL: nodejs/node#46138
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
  • Loading branch information
sercher committed Apr 25, 2024
1 parent 970c3cc commit 0416f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graal-nodejs/test/parallel/test-runner-exit-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function runAndKill(file) {
});
const [code, signal] = await once(child, 'exit');
await finished(child.stdout);
assert.strictEqual(stdout, 'TAP version 13\n');
assert(stdout.startsWith('TAP version 13\n'));
assert.strictEqual(signal, null);
assert.strictEqual(code, 1);
}
Expand Down

0 comments on commit 0416f50

Please sign in to comment.