test: wait more

This commit is contained in:
zaaarf 2024-11-20 00:13:20 +01:00
parent 0e68e89ce8
commit e4c81c0d0d
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -336,8 +336,8 @@ async fn test_content_converges() {
tokio::time::sleep(std::time::Duration::from_secs(1)).await; tokio::time::sleep(std::time::Duration::from_secs(1)).await;
// TODO is there a nicer way to make sure we received all changes? // TODO is there a nicer way to make sure we received all changes?
for i in 0..20 { for i in 0..5 {
tokio::time::sleep(std::time::Duration::from_millis(200)).await; tokio::time::sleep(std::time::Duration::from_secs(1)).await;
match bob.try_recv().await? { match bob.try_recv().await? {
Some(change) => bob.ack(change.version), Some(change) => bob.ack(change.version),
None => break, None => break,
@ -345,8 +345,8 @@ async fn test_content_converges() {
eprintln!("bob more to recv at attempt #{i}"); eprintln!("bob more to recv at attempt #{i}");
} }
for i in 0..20 { for i in 0..5 {
tokio::time::sleep(std::time::Duration::from_millis(200)).await; tokio::time::sleep(std::time::Duration::from_secs(1)).await;
match alice.try_recv().await? { match alice.try_recv().await? {
Some(change) => alice.ack(change.version), Some(change) => alice.ack(change.version),
None => break, None => break,