forked from libp2p/rust-libp2p
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protocols/autonat: Fix flaky test (libp2p#2660)
Handle in test that a `OutboundProbeEvent::Response` can be reported before the associated inbound connection event. In rare cases (that only really happen in a test setup where both peers run on the same device) the server may observe a connection and report the response back to the client, before the connection event was reported at the client.
- Loading branch information
Showing
1 changed file
with
17 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters