test_runner: Fix mock timer issues by mika-fischer · Pull Request #50384 · nodejs/node
added 4 commits
October 25, 2023 12:12An incorrect early return caused processing of due timers to stop prematurely. Fixes: nodejs#50382
mocked setInterval used the wrong increment when scheduling the new timer. Fixes: nodejs#50382
Removal of mocket timers from the priority queue was broken. It used the timerId instead of the position in the queue as index. This lead to removal of incorrect timers from the queue causing timers not to be scheduled at all. Also, aborts caused removal from the queue even when the timer was already triggered, and thus no longer present in the queue. Fixes: nodejs#50365
mika-fischer
changed the title
Fix mock timer issues
test_runner: Fix mock timer issues
atlowChemi
added
author ready
labels
Oct 26, 2023This was referenced
Nov 1, 2023This was referenced
Nov 3, 2023
atlowChemi
added
commit-queue
and removed commit-queue-failed
An error occurred while landing this pull request using GitHub Actions.labels
Nov 12, 2023targos pushed a commit that referenced this pull request
Nov 23, 2023UlisesGascon pushed a commit that referenced this pull request
Dec 11, 2023This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters