From 5d23afe39993ff9e0d116ec4f7994d3c8bd980e3 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 8 Oct 2024 11:43:20 +0100 Subject: [PATCH] test: make `test-loaders-workers-spawned` less flaky PR-URL: https://github.com/nodejs/node/pull/55172 Reviewed-By: Joyee Cheung --- test/es-module/test-loaders-workers-spawned.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/es-module/test-loaders-workers-spawned.mjs b/test/es-module/test-loaders-workers-spawned.mjs index 7b16bdfcd3e2b0..68c1b863f7cae1 100644 --- a/test/es-module/test-loaders-workers-spawned.mjs +++ b/test/es-module/test-loaders-workers-spawned.mjs @@ -76,7 +76,7 @@ describe('Worker threads do not spawn infinitely', { concurrency: !process.env.T assert.strictEqual(stderr, ''); // The worker code should always run before the --import, but the console.log might arrive late. - assert.match(stdout, /^A\r?\nA\r?\n(B\r?\nC|C\r?\nB)\r?\nD\r?\n$/); + assert.match(stdout, /^A\r?\n(A\r?\nB\r?\nC|A\r?\nC\r?\nB|C\r?\nA\r?\nB)\r?\nD\r?\n$/); assert.strictEqual(code, 0); assert.strictEqual(signal, null); });