From 7f27d72b200cfd6acd2d0fc93de5c58d016b35a6 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 9 May 2023 16:55:03 +0200 Subject: [PATCH] Deliver file-system change events in batches in randomized worktree test Co-Authored-By: Julia Risley --- crates/project/src/worktree.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index 554304f3d3..cc326690ec 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -3944,6 +3944,7 @@ mod tests { let mut snapshots = Vec::new(); let mut mutations_len = operations; + fs.as_fake().pause_events().await; while mutations_len > 1 { randomly_mutate_fs(&fs, root_dir, 1.0, &mut rng).await; let buffered_event_count = fs.as_fake().buffered_event_count().await;