Skip to content

Commit

Permalink
Don't unwrap on schedule error in fragmentation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Nov 7, 2024
1 parent f4b4cad commit 694e3fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions io/zenoh-transport/tests/unicast_fragmentation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,13 @@ async fn test_transport(router_handler: Arc<SHRouter>, client_transport: Transpo
ztimeout!(async {
let mut sent = 0;
while router_handler.get_count() < MSG_COUNT {
client_transport.schedule(MSG.clone()).unwrap();
sent += 1;
println!(
"Sent: {sent}. Received: {}/{MSG_COUNT}",
router_handler.get_count()
);
// tokio::time::sleep(SLEEP_SEND).await;
if client_transport.schedule(MSG.clone()).is_ok() {
sent += 1;
println!(
"Sent: {sent}. Received: {}/{MSG_COUNT}",
router_handler.get_count()
);
}
}
});

Expand Down

0 comments on commit 694e3fa

Please sign in to comment.