From f56f8402b829bedf0ff7eefbcc4d2674d1788086 Mon Sep 17 00:00:00 2001 From: iequidoo Date: Tue, 10 Mar 2026 13:56:13 -0300 Subject: [PATCH] test: Shift time even more in flaky test_sync_broadcast_and_send_message As of now, alice1 makes 3 more calls of create_smeared_timestamp() than alice2 does, so we need to shift time by 3s to fix the test. --- src/chat/chat_tests.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/chat/chat_tests.rs b/src/chat/chat_tests.rs index 4980794fdc..41e8a294f5 100644 --- a/src/chat/chat_tests.rs +++ b/src/chat/chat_tests.rs @@ -4701,9 +4701,10 @@ async fn test_sync_broadcast_and_send_message() -> Result<()> { vec![a2b_contact_id] ); - // alice2's smeared clock may be behind alice's one, so "hi" from alice2 may appear before "You - // joined the channel." for bob. - SystemTime::shift(Duration::from_secs(1)); + // alice2's smeared clock may be behind alice1's one, so we need to work around "hi" appearing + // before "You joined the channel." for bob. alice1 makes 3 more calls of + // create_smeared_timestamp() than alice2 does as of 2026-03-10. + SystemTime::shift(Duration::from_secs(3)); tcm.section("Alice's second device sends a message to the channel"); let sent_msg = alice2.send_text(a2_broadcast_id, "hi").await; let msg = bob.recv_msg(&sent_msg).await;