Leave room when client is the only participant
This commit is contained in:
parent
b479c8c8ba
commit
669406d5af
3 changed files with 78 additions and 27 deletions
|
@ -383,9 +383,11 @@ async fn test_leaving_room_on_disconnection(
|
|||
}
|
||||
);
|
||||
|
||||
// When user A disconnects, both client A and B clear their room on the active call.
|
||||
server.disconnect_client(client_a.current_user_id(cx_a));
|
||||
cx_a.foreground().advance_clock(rpc::RECEIVE_TIMEOUT);
|
||||
active_call_a.read_with(cx_a, |call, _| assert!(call.room().is_none()));
|
||||
active_call_b.read_with(cx_b, |call, _| assert!(call.room().is_none()));
|
||||
assert_eq!(
|
||||
room_participants(&room_a, cx_a),
|
||||
RoomParticipants {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue