diff --git a/crates/weft-appd/src/main.rs b/crates/weft-appd/src/main.rs index 99f0cfb..b2c51cb 100644 --- a/crates/weft-appd/src/main.rs +++ b/crates/weft-appd/src/main.rs @@ -481,6 +481,7 @@ mod tests { #[tokio::test] async fn dispatch_launch_returns_ack() { let reg = make_registry(); + let mut rx = reg.lock().await.subscribe(); let resp = dispatch( Request::LaunchApp { app_id: "com.test.app".into(), @@ -499,6 +500,10 @@ mod tests { } _ => panic!("expected LaunchAck"), } + assert!( + matches!(rx.try_recv(), Ok(Response::LaunchAck { .. })), + "LaunchAck must also be broadcast" + ); } #[tokio::test]