diff --git a/crates/server/src/rpc.rs b/crates/server/src/rpc.rs index 3a244244f9..54440bbd56 100644 --- a/crates/server/src/rpc.rs +++ b/crates/server/src/rpc.rs @@ -2232,6 +2232,12 @@ mod tests { }) .await; + worktree_a + .condition(&cx_a, |worktree, cx| { + worktree.collaborators().contains_key(&client_b.peer_id) + }) + .await; + cx_a.update(move |_| drop(worktree_a)); client_a .user_store