From 8393bfe032698cc5d5fee4c45fd2efc5695a7eb1 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 17 May 2022 14:50:28 +0200 Subject: [PATCH] Ensure join request reaches the server before disconnecting host in test --- crates/collab/src/rpc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/collab/src/rpc.rs b/crates/collab/src/rpc.rs index fadc6a36427a9cd78cbaf1e36d7122b6416530fd..93db9f4d06d63def1ecf954fef9880e229626fe8 100644 --- a/crates/collab/src/rpc.rs +++ b/crates/collab/src/rpc.rs @@ -1895,6 +1895,7 @@ mod tests { #[gpui::test(iterations = 10)] async fn test_host_disconnect( + deterministic: Arc, 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));