-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Bug]: Refresh does not work when using fake timers #12527
Comments
Huh, I thought this worked (I filed sinonjs/fake-timers#187 years ago). But this looks like a bug in sinon to me - it for some reason uses the global |
I opened up sinonjs/fake-timers#425 |
Thanks for the quick response on this @SimenB! I see the PR merged. When can I expect the fix to be released to preview and/or stable? |
Tomorrow! 🙂 CET. It'll be in semver range of v28 alpha, but not v27 (as that version of |
A bit delayed, but released now @alyssajotice 🙂 It's in semver range of |
I've also released |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
^27.0.3
Steps to reproduce
Run the following test:
Expected behavior
The timer is refreshed correctly and the callback is not called.
Actual behavior
Refreshing does not work and the callback is called.
Additional context
NodeJS refresh: https://nodejs.org/api/timers.html#timeoutrefresh
Environment
The text was updated successfully, but these errors were encountered: