From 9448cc51403e637fefe1aefec28514450978b76a Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Wed, 11 Mar 2026 18:28:59 +0100 Subject: [PATCH] test(appd): assert LaunchAck is broadcast as well as returned directly --- crates/weft-appd/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) 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]