mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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: https://github.com/nodejs/node/pull/46138 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
1 parent
0bd9704018
commit
bcf97ab1b2
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user