From 425e74df40ca56d6d08ae5f85673648cd9010c7c Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 30 Sep 2024 11:18:41 +0200 Subject: [PATCH] test: make `test-loaders-workers-spawned` less flaky --- 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); });