test: make test-loaders-workers-spawned less flaky

PR-URL: https://github.com/nodejs/node/pull/55172
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
Antoine du Hamel authored and Marco Ippolito committed 2024-11-17 11:51:47 +01:00
1 parent 0bbeb605de
commit 6027084245
1 file changed
+1 -1
@@ -76,7 +76,7 @@ describe('Worker threads do not spawn infinitely', { concurrency: true }, () =>
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);
});