diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index 33a564585acfaa71fbe154d1c0d33548c5234035..59498a3d75b33f0b4e4025f3b2daaa3716828b94 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -386,6 +386,7 @@ impl Worktree { if worktree.poll_task.is_none() { worktree.poll_task = Some(cx.spawn_weak(|this, mut cx| async move { if is_fake_fs { + #[cfg(any(test, feature = "test-support"))] cx.background().simulate_random_delay().await; } else { smol::Timer::after(Duration::from_millis(100)).await;