-
Notifications
You must be signed in to change notification settings - Fork 149
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
Fix/known hosts fingerprint duplication error/upstream 1.0 #110
Conversation
…on the first one and not call the callback on `loadFingerprint` more than once
The two newly added tests failed on our test server.
I fixed the first error in #111, which is just because the server failed to connect to 7687 within timeout as the cert you created in the test is not real. However the second one I have not think of a way to fix. The file DID have two fingerprints sometimes. I am guessing it might because the To run the tests locally, the lazy way is run Thanks again for helping us! |
Its weird, I did run the tests locally and none failed. I tend to believe that somehow the As for the |
@zhenlineo The issue were the tests, I have fixed them in the last commit |
I actually changed that line to |
|
I will look into this, see if i can dig up a deeper issue |
…ook for duplicate lines not just the number of them
I have reworked the test to check for duplicate lines, but I cannot reproduce the occasional 1 in 4 line duplicates that you are experiencing for |
It is still wrong in my local runs, but I will merge this PR and let the whole build system to go over the tests. Will let you know if the test is also flaky on test server. Otherwise, it might just my local settings is somehow wrong. |
Can you please detail a bit your setup, maybe I can reproduce it in a VM. Like OS and node version. I ran on OSX 10.11 with node 4.4.5 and 6.3. |
I have OSX 10.11 with node 4.4.5. I got the error if I run with |
@zhenlineo Using |
…duplication-error/1.0 Fix: regarding PR #110 edge cases
Fixes issue #107 & #108
Fix:
loadFingerprint
callback only called onceFix:
storeFingerprint
does not duplicate information in theknown_hosts
fileAdd: test cases