-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_runner: triggered mocked setInterval stops processing of other timers that are due #50382
Labels
test_runner
Issues and PRs related to the test runner subsystem.
Comments
mika-fischer
added a commit
to mika-fischer/node
that referenced
this issue
Oct 25, 2023
An incorrect early return caused processing of due timers to stop prematurely. Fixes: nodejs#50382
mika-fischer
added a commit
to mika-fischer/node
that referenced
this issue
Oct 25, 2023
mocked setInterval used the wrong increment when scheduling the new timer. Fixes: nodejs#50382
mika-fischer
added a commit
to mika-fischer/node
that referenced
this issue
Oct 25, 2023
An incorrect early return caused processing of due timers to stop prematurely. Fixes: nodejs#50382
mika-fischer
added a commit
to mika-fischer/node
that referenced
this issue
Oct 25, 2023
mocked setInterval used the wrong increment when scheduling the new timer. Fixes: nodejs#50382
mertcanaltin
added
the
test_runner
Issues and PRs related to the test runner subsystem.
label
Oct 25, 2023
nodejs-github-bot
pushed a commit
that referenced
this issue
Nov 12, 2023
targos
pushed a commit
that referenced
this issue
Nov 23, 2023
UlisesGascon
pushed a commit
that referenced
this issue
Dec 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
main
Platform
Linux s7 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
test
What steps will reproduce the bug?
Because of an incorrect early return here, when a mocked
setInterval
is triggered, processing of timers stops, even if there are more timers queued, that are already due.Pull request incoming.
fails with:
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
All timers that are due should be processed
What do you see instead?
Timers that are due are not triggered
Additional information
No response
The text was updated successfully, but these errors were encountered: