From 384e1b5174976be75432184e0530b7cb5b00b124 Mon Sep 17 00:00:00 2001 From: Colin Ihrig Date: Tue, 10 Jan 2023 16:55:53 -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/ PR-URL: https://github.com/nodejs/node/pull/46138 Reviewed-By: Yagiz Nizipli Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum --- 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); }