diff --git a/crates/gpui2/src/app/test_context.rs b/crates/gpui2/src/app/test_context.rs index f590d05c6c..00712eba50 100644 --- a/crates/gpui2/src/app/test_context.rs +++ b/crates/gpui2/src/app/test_context.rs @@ -161,8 +161,8 @@ impl TestAppContext { let (mut tx, rx) = futures::channel::mpsc::unbounded(); entity .update(self, |_, cx: &mut ModelContext| { - cx.subscribe(&entity, move |_, _, event, _| { - let _ = tx.send(event.clone()); + cx.subscribe(&entity, move |_, _, event, cx| { + cx.executor().block(tx.send(event.clone())).unwrap(); }) }) .detach();