Skip to content

Commit

Permalink
test_runner: fix tick processing terminating prematurely
Browse files Browse the repository at this point in the history
An incorrect early return caused processing of due timers to stop
prematurely.

Fixes: nodejs#50382
  • Loading branch information
mika-fischer committed Oct 25, 2023
1 parent 1a23be5 commit c087b39
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/internal/test_runner/mock/mock_timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,6 @@ class MockTimers {
if (timer.interval) {
timer.runAt += timer.interval;
this.#executionQueue.insert(timer);
return;
}

timer = this.#executionQueue.peek();
Expand Down

0 comments on commit c087b39

Please sign in to comment.