Skip to content

Commit a38e02b

Browse files
committed
Review suggestions
1 parent 60bdf18 commit a38e02b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-process-beforeexit.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,22 @@ function tryRepeatedTimer() {
5959
if (++n < N)
6060
setTimeout(repeatedTimer, 1);
6161
else // n == N
62-
process.once('beforeExit', common.mustCall(tryNextTick1));
62+
process.once('beforeExit', common.mustCall(tryNextTickSetImmediate));
6363
}, N);
6464
setTimeout(repeatedTimer, 1);
6565
}
6666

6767
// Test if the callback of `process.nextTick` can be invoked.
68-
function tryNextTick1() {
68+
function tryNextTickSetImmediate() {
6969
process.nextTick(common.mustCall(function() {
7070
setImmediate(common.mustCall(() => {
71-
process.once('beforeExit', common.mustCall(tryNextTick2));
71+
process.once('beforeExit', common.mustCall(tryNextTick));
7272
}));
7373
}));
7474
}
7575

7676
// Test that `process.nextTick` won't keep the event loop running by itself.
77-
function tryNextTick2() {
77+
function tryNextTick() {
7878
process.nextTick(common.mustCall(function() {
7979
process.once('beforeExit', common.mustNotCall());
8080
}));

0 commit comments

Comments
 (0)