Describe the bug
We lately started seeing an issue in our test suite on CI where tests were sometimes running into QUnit timeouts (60s) and it appears to be related to animationsSettled(). It seems that calling await animationsSettled() never resolves for some reason.
What appears to be related is that in some other test we are using @sinon/fake-timers to fake the system time, which is essentially overriding window.Date. My suspicion is that this interacts with the internal clock of ember-animated in some way that leaks between tests.
To Reproduce
Unfortunately I have not been able to reproduce this issue yet locally 😞
Expected behavior
I expect animationsSettled() to resolve once the animations are done, instead of waiting forever and causing the test to time out.
Desktop (please complete the following information):
The test suite is running in a Docker container with Google Chrome.
Describe the bug
We lately started seeing an issue in our test suite on CI where tests were sometimes running into QUnit timeouts (60s) and it appears to be related to
animationsSettled(). It seems that callingawait animationsSettled()never resolves for some reason.What appears to be related is that in some other test we are using
@sinon/fake-timersto fake the system time, which is essentially overridingwindow.Date. My suspicion is that this interacts with the internalclockof ember-animated in some way that leaks between tests.To Reproduce
Unfortunately I have not been able to reproduce this issue yet locally 😞
Expected behavior
I expect
animationsSettled()to resolve once the animations are done, instead of waiting forever and causing the test to time out.Desktop (please complete the following information):
The test suite is running in a Docker container with Google Chrome.