Drop project instead of worktree to simulate client leaving

Antonio Scandurra created

Change summary

crates/server/src/rpc.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/server/src/rpc.rs 🔗

@@ -1632,7 +1632,7 @@ mod tests {
         let buffer_b = cx_b
             .background()
             .spawn(worktree_b.update(&mut cx_b, |worktree, cx| worktree.open_buffer("a.txt", cx)));
-        cx_b.update(|_| drop(worktree_b));
+        cx_b.update(|_| drop(project_b));
         drop(buffer_b);
 
         // See that the guest has left.