From c6dd797f4e08545afd88176c4562022a1b1f7aa4 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 21 Dec 2021 10:20:05 +0100 Subject: [PATCH] Drop project instead of worktree to simulate client leaving --- crates/server/src/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/server/src/rpc.rs b/crates/server/src/rpc.rs index e5ca51a6e832e8a516c003e5d15ae849fc626d1a..b33d76bfc6410d51eb254fc82839eae536f7e510 100644 --- a/crates/server/src/rpc.rs +++ b/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.