diff --git a/test/parallel/test-process-fatal-exception-tick.js b/test/parallel/test-process-fatal-exception-tick.js index 19678d2922516e..605f961f639228 100644 --- a/test/parallel/test-process-fatal-exception-tick.js +++ b/test/parallel/test-process-fatal-exception-tick.js @@ -18,7 +18,6 @@ setImmediate(() => { stage++; process.nextTick(() => assert.strictEqual(stage, 2)); }); -const now = Date.now(); setTimeout(() => setImmediate(() => stage++), 1); -while (now + 10 >= Date.now()); +common.busyLoop(10); throw new Error('caughtException');