diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index ff2baac8d9..1c9ab05cdd 100644 --- a/crates/gpui/src/app.rs +++ b/crates/gpui/src/app.rs @@ -565,6 +565,12 @@ impl TestAppContext { } } +impl Drop for TestAppContext { + fn drop(&mut self) { + self.cx.borrow_mut().flush_effects(); + } +} + impl AsyncAppContext { pub fn spawn(&self, f: F) -> Task where