Skip to content

Commit bcf97ab

Browse files
cjihrigtargos
authored andcommitted
test: fix flaky test-runner-exit-code.js
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: #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]>
1 parent 0bd9704 commit bcf97ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-runner-exit-code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function runAndKill(file) {
2020
});
2121
const [code, signal] = await once(child, 'exit');
2222
await finished(child.stdout);
23-
assert.strictEqual(stdout, 'TAP version 13\n');
23+
assert(stdout.startsWith('TAP version 13\n'));
2424
assert.strictEqual(signal, null);
2525
assert.strictEqual(code, 1);
2626
}

0 commit comments

Comments
 (0)