Skip to content

Commit 1b1a5f1

Browse files
committed
test: Bob has 0 members in the chat until securejoin finishes
1 parent 1946603 commit 1b1a5f1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/securejoin/securejoin_tests.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,13 @@ async fn test_secure_join() -> Result<()> {
477477
bob.recv_msg_trash(&sent).await;
478478
let sent = bob.pop_sent_msg().await;
479479

480+
// At this point Alice is still not part of the chat.
481+
// The final step of Alice adding Bob to the chat
482+
// may not work out and we don't want Bob
483+
// to implicitly add Alice if he manages to join the group
484+
// much later via another member.
485+
assert_eq!(chat::get_chat_contacts(&bob, bob_chatid).await?.len(), 0);
486+
480487
let contact_alice_id = bob.add_or_lookup_contact_no_key(&alice).await.id;
481488

482489
// Check Bob emitted the JoinerProgress event.

0 commit comments

Comments
 (0)