-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Timecop is freezing tests #245
Comments
Since #239 was not merged yet it seems that we are not actually using |
@Turbo87 - Well, |
If you have the time, could you put together a repo I could use for testing / experimenting with this? |
Interestingly jamesarosen/Timecop.js#24 (comment) notes that:
I updated the issue description to reflect this. I'm wondering what is causing these freezes then 🤔 |
The issue is exactly what you mentioned in the initial description. BackburnerJS/backburner.js@a6fe19e changed However, I also tested this with the changes from #239 and it does pass. I suspect that any "real world" scenario would still fail though. Essentially any usage of |
How did this work before? |
Oh, I understand... BackburnerJS/backburner.js#264 🤔 |
Well, even with the same Ember version if you used the older style ember-qunit setup (e.g. |
Hmm, @Turbo87 I vaguely think that we discussed this in slack and you mentioned it was no longer an issue (or at least you had worked around it)? |
I'm not sure, but since #245 (comment) has a reproduction it should be relatively easy to verify whether this works now or not. In our real app I think we're using |
kk, I'll try to pull it down and test... |
We had/have a similar issue over at ember-mockdate-shim Ticketfly/ember-mockdate-shim#4 |
We are using https://github.com/matteodepalo/ember-cli-timecop in a few component integration tests and until now this worked fine. We tried to convert those tests to use the new testing APIs, but now
Timecop.freeze()
seems to block theasync render(...)
call from continuing.An issue similar to this has existed in the past where Backburner.js would not continue running when
Date.now()
is mocked and frozen, but was fixed by getting a reference to theDate
object on startup and then using that reference instead of the temporary mocked global.The text was updated successfully, but these errors were encountered: