From 1722cb8851f1237c20acdf0f2c2701df48a726b2 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 12 Apr 2025 17:00:34 +0000 Subject: [PATCH] test: fix mismatch between the contact and the account in securejoin tests --- src/securejoin/securejoin_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/securejoin/securejoin_tests.rs b/src/securejoin/securejoin_tests.rs index e67174049..3fb997e2c 100644 --- a/src/securejoin/securejoin_tests.rs +++ b/src/securejoin/securejoin_tests.rs @@ -452,7 +452,7 @@ async fn test_setup_contact_bob_knows_alice() -> Result<()> { .expect("Error looking up contact") .expect("Contact not found"); let contact_alice = Contact::get_by_id(&bob.ctx, contact_alice_id).await?; - assert_eq!(contact_bob.is_verified(&bob.ctx).await?, false); + assert_eq!(contact_alice.is_verified(&bob.ctx).await?, false); // Step 7: Bob receives vc-contact-confirm bob.recv_msg_trash(&sent).await; @@ -636,7 +636,7 @@ async fn test_secure_join() -> Result<()> { .expect("Error looking up contact") .expect("Contact not found"); let contact_alice = Contact::get_by_id(&bob.ctx, contact_alice_id).await?; - assert_eq!(contact_bob.is_verified(&bob.ctx).await?, false); + assert_eq!(contact_alice.is_verified(&bob.ctx).await?, false); // Step 7: Bob receives vg-member-added bob.recv_msg(&sent).await;