diff --git a/crates/gpui/src/executor.rs b/crates/gpui/src/executor.rs index 76ee8ca4d6628bba8b72d31dd1ff78c191202088..6ed00c238f07504fbac1db6e5bbd896616a1dca3 100644 --- a/crates/gpui/src/executor.rs +++ b/crates/gpui/src/executor.rs @@ -532,10 +532,7 @@ impl Foreground { #[cfg(any(test, feature = "test-support"))] pub fn advance_clock(&self, duration: Duration) { match self { - Self::Deterministic { executor, .. } => { - executor.run_until_parked(); - executor.advance_clock(duration); - } + Self::Deterministic { executor, .. } => executor.advance_clock(duration), _ => panic!("this method can only be called on a deterministic executor"), } }