-
Notifications
You must be signed in to change notification settings - Fork 965
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
Test swarm:multiple_addresses_err fails #2874
Comments
Formatting left and right gives:
So there is a duplicate |
This is strange. I see you ran the test in a loop for it to fail. How many times did you have to run it for it to break? |
I just tried it on my computer and it took 11m for it to finally fail. |
Ha, so this is a funny one! We are generating a total of 8 addresses to dial. If - by chance - we are generating the same port twice, we will dial the same address twice but only receive one dial error back. This is what is happening here. We can see that because "left" are the failed addresses (only 7) and right are 8 addresses, including a duplicate one. The odd thing about the test is that the expected and actual values are IMO flipped. I'd expect (no pun intended) that "expected" is left and "actual" is right. In any case, to make this rather rare test failure go away, we simply need to use a |
I would have never caught this one on my own but the CI caught it right after I merged master into my branch =) |
Thanks for debugging here! |
rust-libp2p/swarm/src/lib.rs
Line 2465 in b8c3b28
The text was updated successfully, but these errors were encountered: