Skip to content
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

Add fragmentation test #1587

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve logging for CI
Mallets committed Nov 7, 2024
commit f4b4cadddc57f6b48f82262f1e0d8ea672bcdfd4
10 changes: 5 additions & 5 deletions io/zenoh-transport/tests/unicast_fragmentation.rs
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ const TIMEOUT: Duration = Duration::from_secs(60);
const SLEEP: Duration = Duration::from_secs(1);
const SLEEP_SEND: Duration = Duration::from_millis(1);

const MSG_COUNT: usize = 1_000;
const MSG_COUNT: usize = 100;
lazy_static! {
#[derive(Debug)]
static ref MSG: NetworkMessage = Push {
@@ -292,12 +292,12 @@ async fn test_transport(router_handler: Arc<SHRouter>, client_transport: Transpo
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;
}
println!(
"Sent: {sent}. Received: {}/{MSG_COUNT}",
router_handler.get_count()
);
});

// Wait a little bit