-
Notifications
You must be signed in to change notification settings - Fork 27
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
Yet another flaky test (or a flaky function!) causing rare failures. #128
Comments
Test improvements in some of these 42 PR's I currently have pending (and I'm not even sure which ones!) have helped, but not eliminated this particular error. It was always about ~90 [+/- 15] failures with |
e99926c#diff-fe29af682b09b1e9bf8169d7c1d2d1f971e70f8f48e7ad4dbb1f624ded93d2f3 is the commit that solved most of the issues - this whole thing is done in a way that's inherently race-prone, but that's seemingly not only the issue here - I'll see if I can find a solution. |
It's a hackjob if workaround, but so is a lot of this code:
I'll push the commit into PR #161 to fix it. |
Pretty sure the actual root cause is the race at github.com/pkt-cash/pktd/addrmgr.(*KnownAddress).LastAttempt() as noted at #170 |
A proper fix for this test is now pending as PR #212 - if that is accepted and merged, then this issue can be closed. |
peer: TestPeerConnection test:
So, the test passes 99.1% of the time.
Will look into it and see what the source of this failure may be.
Originally posted by @johnsonjh in #127 (comment)
The text was updated successfully, but these errors were encountered: