From b98b32317c3a61f8167f83c966d2100f27f87ee6 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 13 Jun 2026 20:11:18 +0200 Subject: [PATCH] test: fixup the tests after removing timesmearing --- src/chat/chat_tests.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat/chat_tests.rs b/src/chat/chat_tests.rs index f596d147f..38c8c4af2 100644 --- a/src/chat/chat_tests.rs +++ b/src/chat/chat_tests.rs @@ -2971,6 +2971,7 @@ async fn test_broadcast_change_name() -> Result<()> { { tcm.section("Alice changes the chat name"); + SystemTime::shift(Duration::from_secs(1)); set_chat_name(alice, broadcast_id, "My great broadcast").await?; let sent = alice.pop_sent_msg().await; @@ -2989,6 +2990,7 @@ async fn test_broadcast_change_name() -> Result<()> { { tcm.section("Alice changes the chat name again, but the system message is lost somehow"); + SystemTime::shift(Duration::from_secs(1)); set_chat_name(alice, broadcast_id, "Broadcast channel").await?; let chat = Chat::load_from_db(alice, broadcast_id).await?; @@ -3343,6 +3345,7 @@ async fn test_broadcasts_name_and_avatar() -> Result<()> { assert_eq!(bob_chat.get_profile_image(bob).await?, None); tcm.section("Change broadcast channel name, and check that receivers see it"); + SystemTime::shift(Duration::from_secs(1)); set_chat_name(alice, alice_chat_id, "New Channel name").await?; let sent = alice.pop_sent_msg().await; let rcvd = bob.recv_msg(&sent).await;