Skip to content

Commit f428058

Browse files
committed
test: more time shift
1 parent 15b7340 commit f428058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5331,11 +5331,11 @@ mod tests {
53315331

53325332
send_text_msg(&alice, alice_chat_id, "populate".to_string()).await?;
53335333
let add = alice.pop_sent_msg().await;
5334-
tokio::time::sleep(std::time::Duration::from_millis(1100)).await;
5334+
SystemTime::shift(Duration::from_millis(1100));
53355335

53365336
remove_contact_from_chat(&alice, alice_chat_id, claire_id).await?;
53375337
let remove1 = alice.pop_sent_msg().await;
5338-
tokio::time::sleep(std::time::Duration::from_millis(1100)).await;
5338+
SystemTime::shift(Duration::from_millis(1100));
53395339

53405340
remove_contact_from_chat(&alice, alice_chat_id, daisy_id).await?;
53415341
let remove2 = alice.pop_sent_msg().await;

0 commit comments

Comments
 (0)