From 36ac34195b9adf0794f10efe14b0ae98089999b5 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/test-runner-exit-code.js b/test/parallel/test-runner-exit-code.js index 1833fa00f7f7ae..d177ec438bdd45 100644 --- a/test/parallel/test-runner-exit-code.js +++ b/test/parallel/test-runner-exit-code.js @@ -20,8 +20,7 @@ async function runAndKill(file) { }); const [code, signal] = await once(child, 'exit'); await finished(child.stdout); - assert.match(stdout, /not ok 1/); - assert.match(stdout, /# cancelled 1\n/); + assert(stdout.startsWith('TAP version 13\n')); assert.strictEqual(signal, null); assert.strictEqual(code, 1); }