From 576a9bb92cd59cb147d9b85ff838a6d39f3dda40 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 9 Jan 2023 14:49:36 -0800 Subject: [PATCH] Drop project's buffers when closing a remote project --- crates/collab/src/tests/randomized_integration_tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/collab/src/tests/randomized_integration_tests.rs b/crates/collab/src/tests/randomized_integration_tests.rs index 34ae96e665..cd51a2e1f8 100644 --- a/crates/collab/src/tests/randomized_integration_tests.rs +++ b/crates/collab/src/tests/randomized_integration_tests.rs @@ -597,6 +597,7 @@ async fn apply_client_operation( .unwrap(); cx.update(|_| { client.remote_projects_mut().remove(ix); + client.buffers().retain(|project, _| project != project); drop(project); }); }