From 5f5234c5daa2d704f7f82038291bf75cce9d8da2 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Fri, 27 Oct 2023 10:51:36 +0200 Subject: [PATCH] Fix fs2 tests --- crates/gpui2/src/executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui2/src/executor.rs b/crates/gpui2/src/executor.rs index 6bfd9ce15a..104f40e8f1 100644 --- a/crates/gpui2/src/executor.rs +++ b/crates/gpui2/src/executor.rs @@ -220,7 +220,7 @@ impl Executor { #[cfg(any(test, feature = "test-support"))] pub fn simulate_random_delay(&self) -> impl Future { - self.dispatcher.as_test().unwrap().simulate_random_delay() + self.spawn(self.dispatcher.as_test().unwrap().simulate_random_delay()) } #[cfg(any(test, feature = "test-support"))]