From a55e5f3965548703b913ccff2c2f6dddd46cfece Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 8 Jan 2023 16:47:18 -0500 Subject: [PATCH] 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/ --- test/parallel/test-runner-exit-code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-runner-exit-code.js b/test/parallel/test-runner-exit-code.js index 1c28c2439050fc..d177ec438bdd45 100644 --- a/test/parallel/test-runner-exit-code.js +++ b/test/parallel/test-runner-exit-code.js @@ -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); }