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
crypto.generateKeyPairSync causing KEYPAIRGENREQUEST "potentially keeping Jest from exiting" #11754
Comments
I wasn't able to reproduce this with the LTS (14.x), but it does appear to happen with current (16.x) with both sync and async. I see you switched to using If you would be willing to dive a bit deeper and try to figure out whats causing the problems with |
I can reproduce this issue with the latest version from I can reliably reproduce it with Node.js 18 and Ubuntu 22.04. I've tried v14 but it works without issues there. For some reason, I can't reproduce it in CI (with GitHub Actions). |
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 30 days. |
This issue was closed because it has been stalled for 30 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
Jest's
--detectOpenHandles
logic is getting triggered by callingcrypto.generateKeyPairSync
in a test. However it lets a node js program exit without any problems.To Reproduce
Call this code in a jest test
and it produces:
Expected behavior
Should not trigger a warning.
Link to repl or repo (highly encouraged)
https://replit.com/@hornta/Jest-issue-with-cryptogenerateKeyPairSync#index.test.js
envinfo
The text was updated successfully, but these errors were encountered: