diff --git a/crates/matrix-sdk/src/http_client/mod.rs b/crates/matrix-sdk/src/http_client/mod.rs index c1b91bcd97f..17cd93bc1aa 100644 --- a/crates/matrix-sdk/src/http_client/mod.rs +++ b/crates/matrix-sdk/src/http_client/mod.rs @@ -397,7 +397,7 @@ mod tests { }); // give it some time to issue the requests - tokio::time::sleep(Duration::from_secs(3)).await; + tokio::time::sleep(Duration::from_millis(300)).await; assert_eq!(counter.load(Ordering::SeqCst), 254, "Not all requests passed through"); bg_task.abort();