mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
test(appd): assert LaunchAck is broadcast as well as returned directly
This commit is contained in:
parent
55b80ea2b3
commit
9448cc5140
1 changed files with 5 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue