Skip to content

Commit 60bdf18

Browse files
Update test/parallel/test-process-beforeexit.js
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 6bc38d8 commit 60bdf18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-process-beforeexit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ function tryRepeatedTimer() {
6767
// Test if the callback of `process.nextTick` can be invoked.
6868
function tryNextTick1() {
6969
process.nextTick(common.mustCall(function() {
70-
setTimeout(common.mustCall(() => {
70+
setImmediate(common.mustCall(() => {
7171
process.once('beforeExit', common.mustCall(tryNextTick2));
72-
}), 0);
72+
}));
7373
}));
7474
}
7575

0 commit comments

Comments
 (0)