From e4c81c0d0dc49ecd21a229c97b1759c4f381f654 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Wed, 20 Nov 2024 00:13:20 +0100 Subject: [PATCH] test: wait more --- src/tests/client.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/client.rs b/src/tests/client.rs index dcd4dc0..6b960a3 100644 --- a/src/tests/client.rs +++ b/src/tests/client.rs @@ -336,8 +336,8 @@ async fn test_content_converges() { tokio::time::sleep(std::time::Duration::from_secs(1)).await; // TODO is there a nicer way to make sure we received all changes? - for i in 0..20 { - tokio::time::sleep(std::time::Duration::from_millis(200)).await; + for i in 0..5 { + tokio::time::sleep(std::time::Duration::from_secs(1)).await; match bob.try_recv().await? { Some(change) => bob.ack(change.version), None => break, @@ -345,8 +345,8 @@ async fn test_content_converges() { eprintln!("bob more to recv at attempt #{i}"); } - for i in 0..20 { - tokio::time::sleep(std::time::Duration::from_millis(200)).await; + for i in 0..5 { + tokio::time::sleep(std::time::Duration::from_secs(1)).await; match alice.try_recv().await? { Some(change) => alice.ack(change.version), None => break,