From 36f8c680995e835a4d084bb07376965b5541876c Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 22 Jun 2022 14:43:21 -0700 Subject: [PATCH] Remove redundant run_until_parked call in Foreground::advance_clock --- crates/gpui/src/executor.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/gpui/src/executor.rs b/crates/gpui/src/executor.rs index 76ee8ca4d6..6ed00c238f 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"), } }