test: wait 1s so it can catch up in case its slow

This commit is contained in:
əlemi 2024-11-05 01:48:45 +01:00
parent bf9ea18d67
commit 97ee48629d
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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? {