-
Notifications
You must be signed in to change notification settings - Fork 286
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
Show pending timers #1218
Comments
@ember/test-helpers exposes an API that we can leverage for this (or that you can use yourself while debugging): Docs are here: https://github.com/emberjs/ember-test-helpers/blob/master/API.md#getsettledstate |
Sort of. |
That information is available within the debugInfo that is included in @scalvert - do you happen to recall? |
Either way, this is a good feature for the inspector. I’m just explaining that we don’t need to roll our own, we should leverage the shared infra provided by |
@rwjblue I’m not sure if that’s public API. I’d have to check. |
It looks like the |
Problem
I had a test that was hanging on
await visit...
. I could see in the inspector any pending promises. But I had a backend watchdog service that had a task which looped aroundember-concurrency's timeout
function. This wraps arun.later
which was always present, so hanging the test. Ember Inspector didn't help me to find the fault in my code.Solution
Show pending
run.later
timers in a tab, similar to the promises tab. Allow tracing of the call that set them up.The text was updated successfully, but these errors were encountered: