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
Jest detects open handles when importing ssh2 #1173
Comments
I've noticed in the documentation for // before
sig = crypto.sign(null, data, key);
// after
crypto.sign(null, data, key (err, sig) => {
} Because the If you have any suggestions, such as |
This seems like a Jest bug to me because this is a synchronous API call. Either their method of detecting handles is buggy or node is doing something wrong (unlikely). |
Thanks for the quick response @mscdex. I have raised an issue with Jest: jestjs/jest#12775 |
The PR for jest has been accepted and merged. Thanks again @mscdex |
Hello!
When I run a test which imports ssh2 with
jest --detectOpenHandles
, I get warnings:The code causing the issue is this, specifically
crypto.sign(null, data, key);
:You'll note that this code is run automatically when the ssh2 module is imported, so I don't see how I can circumvent it.
I am able to reproduce this on Mac OS but the issue was initially brought to my attention via testcontainers/testcontainers-node#346 where people on Linux experience the same.
I've tried searching for more information about
SIGNREQUEST
but cannot find anything of interest in this repository's history/issues or on Google.Any help/suggestions would be much appreciated!
I am using version
1.4.0
of ssh2, though I see the code foreddsaSupported
is the same in the latest.The text was updated successfully, but these errors were encountered: