Skip to content

Commit f1de01d

Browse files
committed
fix test_unknown_sender
1 parent ca59640 commit f1de01d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/securejoin/securejoin_tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,8 @@ async fn test_unknown_sender() -> Result<()> {
711711

712712
let sent = bob.send_text(bob_chat_id, "Hi hi!").await;
713713

714-
let alice_bob_contact_id = Contact::create(&alice, "Bob", "bob@example.net").await?;
715-
remove_contact_from_chat(&alice, alice_chat_id, alice_bob_contact_id).await?;
714+
let alice_bob_contact = alice.add_or_lookup_pgp_contact(&bob).await;
715+
remove_contact_from_chat(&alice, alice_chat_id, alice_bob_contact.id).await?;
716716
alice.pop_sent_msg().await;
717717

718718
// The message from Bob is delivered late, Bob is already removed.

0 commit comments

Comments
 (0)