-
Notifications
You must be signed in to change notification settings - Fork 108
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
Unable to use shouldAdvanceTime and advanceTimeDelta options. #122
Comments
Thanks for your bug report. This was quite unfortunate. @elad-nach, any ideas? |
@fatso83 I'm just looking into this as I'm trying to integrate 2.1.0 into sinon. I'm also getting sporadic errors there - regardless to whether lolex is installed with |
@fatso83 @benjamingr |
The error makes sense - the user overrode I'll see if I can hack around it (by mimicing nextTick better), the obvious fix is to advance the clock synchronously and then uninstall. A general way to reproduce would be: lolex.install({}); //
startSomeAsyncNodeAction((err, data) => {
// startSomeAsyncNodeAction might call nextTick
}); |
It's because |
Sorry @royalpinto , this is my bad - I meant to have it work but I made a silly mistake: - args: Array.prototype.slice.call(1)
+ args: Array.prototype.slice.call(arguments, 1) Submitting a PR now. |
@fatso83 @elad-nach @benjamingr |
@royalpinto No new patch release has been made. I'll see to it today. |
This is now published as 2.1.1. |
Env Details:
lolex: 2.1.0
node: v6.9.2
Following script throws an error:
Error:
What could be the issue ?
The text was updated successfully, but these errors were encountered: