-
-
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
--detectOpenHandles
reports open handles in ZLIB, but exits cleanly
#11542
Comments
We have a similar issue, but it only occurs in relation with mongodb-memory-server:
Output:
Without the mongo related code, jest does not report the open handle. |
PR welcome! Sounds like it should be added to the exceptions here: https://github.com/facebook/jest/blob/10d9580edec4058ffd8a7c52786331379e32e711/packages/jest-core/src/collectHandles.ts#L65-L77 |
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
While investigating a different issue in Jest, I ran my test suite with
--detectOpenHandles
, even though the test suite exits cleanly, without workers needing to be force exited.When doing so, Jest reports several open handles in relation to ZLIB. The printed stack traces look like:
All stack traces point to invokation of
inflateRawSync()
.To Reproduce
I have no repro case, as I'm hoping this is fairly obvious to a developer. I can probably create one if required.
Expected behavior
I'm currently assuming this to be a false positive that shouldn't be reported.
Link to repl or repo (highly encouraged)
envinfo
The text was updated successfully, but these errors were encountered: