From 97ee48629d9b1ca8f8dcd4907b12e827ad7ad95b Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 5 Nov 2024 01:48:45 +0100 Subject: [PATCH] test: wait 1s so it can catch up in case its slow --- src/tests/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/client.rs b/src/tests/client.rs index 1b0d362..d0ffa06 100644 --- a/src/tests/client.rs +++ b/src/tests/client.rs @@ -320,8 +320,10 @@ async fn test_content_converges() { x??; } - // TODO is there a nicer way to make sure we received all changes? + // test runners may be slow, give 1s to catch up, just in case + 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; match bob.try_recv().await? {