We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b7340 commit f428058Copy full SHA for f428058
src/chat.rs
@@ -5331,11 +5331,11 @@ mod tests {
5331
5332
send_text_msg(&alice, alice_chat_id, "populate".to_string()).await?;
5333
let add = alice.pop_sent_msg().await;
5334
- tokio::time::sleep(std::time::Duration::from_millis(1100)).await;
+ SystemTime::shift(Duration::from_millis(1100));
5335
5336
remove_contact_from_chat(&alice, alice_chat_id, claire_id).await?;
5337
let remove1 = alice.pop_sent_msg().await;
5338
5339
5340
remove_contact_from_chat(&alice, alice_chat_id, daisy_id).await?;
5341
let remove2 = alice.pop_sent_msg().await;
0 commit comments