Skip to content

Commit abccc54

Browse files
committed
Adjust test_leave_protected_group_missing_member_key
1 parent c383422 commit abccc54

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/receive_imf/tests.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4865,19 +4865,13 @@ async fn test_leave_protected_group_missing_member_key() -> Result<()> {
48654865
("b@b", "bob@example.net"),
48664866
)
48674867
.await?;
4868+
4869+
// We fail to send the message.
48684870
assert!(remove_contact_from_chat(alice, group_id, ContactId::SELF)
48694871
.await
48704872
.is_err());
4871-
assert!(is_contact_in_chat(alice, group_id, ContactId::SELF).await?);
4872-
alice
4873-
.sql
4874-
.execute(
4875-
"UPDATE acpeerstates SET addr=? WHERE addr=?",
4876-
("bob@example.net", "b@b"),
4877-
)
4878-
.await?;
4879-
remove_contact_from_chat(alice, group_id, ContactId::SELF).await?;
4880-
alice.pop_sent_msg().await;
4873+
4874+
// The contact is already removed anyway.
48814875
assert!(!is_contact_in_chat(alice, group_id, ContactId::SELF).await?);
48824876
Ok(())
48834877
}

0 commit comments

Comments
 (0)