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/node-test-commit-linuxone/test/fixtures/test-runner/never_ending_async.js\n'
- 'TAP version 13\n'

This commit resolves that flakiness.

Refs: https://ci.nodejs.org/job/node-test-commit-linuxone/35759/
  • Loading branch information
cjihrig committed Jan 8, 2023
1 parent 1ecc03e commit 41b8ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 41b8ad1

Please sign in to comment.