Skip to content

Commit 9336f5b

Browse files
committed
Fix test_ignore_outdated_membership_changes
1 parent 997393e commit 9336f5b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/receive_imf/tests.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4152,11 +4152,15 @@ async fn test_ignore_outdated_membership_changes() -> Result<()> {
41524152

41534153
SystemTime::shift(Duration::from_secs(3600));
41544154

4155-
// Bob replies again adding Alice back.
4155+
// Bob replies again, even after some time this does not add Alice back.
4156+
//
4157+
// Bob cannot learn from Alice that Alice has left the group
4158+
// because Alice is not going to send more messages to the group.
41564159
send_text_msg(bob, bob_chat_id, "i'm bob".to_string()).await?;
41574160
let msg = &bob.pop_sent_msg().await;
41584161
alice.recv_msg(msg).await;
4159-
assert!(is_contact_in_chat(alice, alice_chat_id, ContactId::SELF).await?);
4162+
4163+
assert!(!is_contact_in_chat(alice, alice_chat_id, ContactId::SELF).await?);
41604164

41614165
Ok(())
41624166
}

0 commit comments

Comments
 (0)