Ensure join request reaches the server before disconnecting host in test
This commit is contained in:
parent
a828282771
commit
8393bfe032
1 changed files with 2 additions and 0 deletions
|
@ -1895,6 +1895,7 @@ mod tests {
|
|||
|
||||
#[gpui::test(iterations = 10)]
|
||||
async fn test_host_disconnect(
|
||||
deterministic: Arc<Deterministic>,
|
||||
cx_a: &mut TestAppContext,
|
||||
cx_b: &mut TestAppContext,
|
||||
cx_c: &mut TestAppContext,
|
||||
|
@ -1973,6 +1974,7 @@ mod tests {
|
|||
.await
|
||||
}
|
||||
});
|
||||
deterministic.run_until_parked();
|
||||
|
||||
// Drop client A's connection. Collaborators should disappear and the project should not be shown as shared.
|
||||
server.disconnect_client(client_a.current_user_id(cx_a));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue