test: accept the chat with the caller before accepting calls

This commit is contained in:
link2xt
2025-10-17 09:13:18 +00:00
parent 4a0b180d86
commit e8a4c9237d
2 changed files with 29 additions and 0 deletions

View File

@@ -45,6 +45,12 @@ async fn setup_call() -> Result<CallSetup> {
// Alice creates a chat with Bob and places an outgoing call there.
// Alice's other device sees the same message as an outgoing call.
let alice_chat = alice.create_chat(&bob).await;
// Create chat on Bob's side
// so incoming call causes a notification.
bob.create_chat(&alice).await;
bob2.create_chat(&alice).await;
let test_msg_id = alice
.place_outgoing_call(alice_chat.id, PLACE_INFO.to_string())
.await?;