Skip to content

Commit

Permalink
Fix transport_multicast_udp_only test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Sep 14, 2023
1 parent 21ac10f commit b143371
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion io/zenoh-transport/tests/multicast_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ mod tests {
println!("Closing transport with {endpoint}");
ztimeout!(peer01.transport.close()).unwrap();
assert!(peer01.manager.get_transports_multicast().await.is_empty());
assert!(peer02.transport.get_peers().unwrap().is_empty());
ztimeout!(async {
while !peer02.transport.get_peers().unwrap().is_empty() {
task::sleep(SLEEP_COUNT).await;
}
});

// Close the peer02 transport
println!("Closing transport with {endpoint}");
Expand Down

0 comments on commit b143371

Please sign in to comment.