Skip to content

Commit

Permalink
use system time
Browse files Browse the repository at this point in the history
  • Loading branch information
Septias committed Nov 15, 2024
1 parent 5da54a7 commit 48cc5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7724,7 +7724,7 @@ mod tests {
let self_chat = alice.get_self_chat().await.id;
self_chat.set_draft(&alice, Some(&mut msg)).await.unwrap();
let draft1 = self_chat.get_draft(&alice).await?.unwrap();
tokio::time::sleep(Duration::from_millis(800)).await;
SystemTime::shift(Duration::from_secs(1)).await;
self_chat.set_draft(&alice, Some(&mut msg)).await.unwrap();
let draft2 = self_chat.get_draft(&alice).await?.unwrap();
assert_eq!(draft1.timestamp_sort, draft2.timestamp_sort);
Expand Down

0 comments on commit 48cc5a3

Please sign in to comment.