-
Notifications
You must be signed in to change notification settings - Fork 54
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
Ignore unknown answers #831
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## unstable #831 +/- ##
============================================
- Coverage 83.69% 83.67% -0.02%
============================================
Files 82 82
Lines 14907 14908 +1
============================================
- Hits 12476 12474 -2
- Misses 2431 2434 +3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! thanks!
We can leave it for another PR, but I think it would be nice to have a couple of simple tests wihtout the autonat stub, so using a real autonat. I would suggest just two tests:
- 3 peers, all of them with autonat. peer1 connects to peer2/3. We can see its reachable with 100% confidence.
- 3 peers, where peer2 supports autonat but peer3 does not. Here we should see that node1 is also labeled as Reachable with 100 confidence, since peer3 responses are dicarded due to not supporting autonat.
imho the stub is only useful for scenarios that we can't reproduce, like NotReachable. For the rest, the closer we get to a real scenario, the better.
I agree. That's how I started testing, but it was harder to know when to finish the test. I used |
Co-authored-by: Tanguy <tanguy@status.im>
5b2cc8a
Can't you wait for the callback to be called? |
Probably yes, a lot of refactoring happened since then. |
No description provided.