You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test isolation validation should include canceling active test waiters in ember-test-watiers #488
The ember-test-waiters library will soon include an API to cancel all pending waiters. This is a similar concept to where we cancel timers if test isolation validation is triggered:
I'm a bit on the fence here, while I agree that it might seem nice to have I do not think that we can actually cancel the async operation that the waiters are paused on. This means that while the waiters will not pause tests any more, you actually are in a broken state. Silently swallowing that seems extremely bad...
Had a good chat with @rwjblue offline. We agreed that adding this API will likely result in leaks actually occurring, defeating the point of the waiters.
We discussed evaluating settled when a test starts, and if we're not in a settled state, fail hard then so we don't incorrectly signal test failures on successive tests.
Activity
rwjblue commentedon May 13, 2019
I'm a bit on the fence here, while I agree that it might seem nice to have I do not think that we can actually cancel the async operation that the waiters are paused on. This means that while the waiters will not pause tests any more, you actually are in a broken state. Silently swallowing that seems extremely bad...
scalvert commentedon May 13, 2019
Had a good chat with @rwjblue offline. We agreed that adding this API will likely result in leaks actually occurring, defeating the point of the waiters.
We discussed evaluating
settledwhen a test starts, and if we're not in a settled state, fail hard then so we don't incorrectly signal test failures on successive tests.rwjblue commentedon May 17, 2019
@scalvert - Should we close then?