Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
umgefahren committed Mar 7, 2024
1 parent 41804be commit bd495f9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions protocols/autonat/tests/autonatv2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,16 @@ async fn bootstrap() -> (Swarm<CombinedServer>, Swarm<CombinedClient>) {
})
.await;

let _ = bob.wait(|event| match event {
SwarmEvent::ConnectionEstablished {
connection_id,
peer_id,
..
} if incoming_conn_id == connection_id && peer_id == cor_server_peer => Some(()),
_ => None,
}).await;
let _ = bob
.wait(|event| match event {
SwarmEvent::ConnectionEstablished {
connection_id,
peer_id,
..
} if incoming_conn_id == connection_id && peer_id == cor_server_peer => Some(()),
_ => None,
})
.await;

bob.wait(|event| match event {
SwarmEvent::Behaviour(CombinedClientEvent::Autonat(_)) => Some(()),
Expand Down

0 comments on commit bd495f9

Please sign in to comment.