File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -4865,19 +4865,13 @@ async fn test_leave_protected_group_missing_member_key() -> Result<()> {
4865
4865
( "b@b" , "bob@example.net" ) ,
4866
4866
)
4867
4867
. await ?;
4868
+
4869
+ // We fail to send the message.
4868
4870
assert ! ( remove_contact_from_chat( alice, group_id, ContactId :: SELF )
4869
4871
. await
4870
4872
. 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.
4881
4875
assert ! ( !is_contact_in_chat( alice, group_id, ContactId :: SELF ) . await ?) ;
4882
4876
Ok ( ( ) )
4883
4877
}
You can’t perform that action at this time.
0 commit comments