-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Asynchronous operations not stopped in tests? #7817
Comments
This is another example. I changed to a simpler test and flagged it with
|
It seems like it's probably related to how Jest times reporting the open handle stuff. For example I just ran
|
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
When running
npm t
on this repository I sometimes get the messageTimeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.
. The first time this happened I played around withonly
on some of the tests, and did not change any code, and all of a sudden it started working ... so life was good. Now it's happening again, and it's also random.To Reproduce
In order to see what's going on I tried running only this test:
The first time I tried this I was still getting an error message and it said to try adding
--detectOpenHandles
. So I added that, and now the test passes. I did not change the code at all. I included the complete console log of this below:Expected behavior
All the tests should pass.
The text was updated successfully, but these errors were encountered: