Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit eee8da9

Browse files
committedOct 25, 2023
test_runner: fix tick processing terminating prematurely
An incorrect early return caused processing of due timers to stop prematurely. Fixes: nodejs#50382
1 parent 19d2ee6 commit eee8da9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎lib/internal/test_runner/mock/mock_timers.js

-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ class MockTimers {
624624
if (timer.interval) {
625625
timer.runAt += timer.interval;
626626
this.#executionQueue.insert(timer);
627-
return;
628627
}
629628

630629
timer = this.#executionQueue.peek();

0 commit comments

Comments
 (0)
Please sign in to comment.