mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-26 17:03:09 +00:00
test(appd): assert AppState::Stopped broadcast in supervisor integration test
supervisor_transitions_through_ready_to_stopped now checks both
broadcast messages: AppReady (on READY signal) and AppState::Stopped
(on process exit), covering the path added in 3315b15.
This commit is contained in:
parent
e83be20798
commit
e5ec05ce2c
1 changed files with 6 additions and 0 deletions
|
|
@ -570,6 +570,12 @@ mod tests {
|
|||
Ok(Response::AppReady { session_id: sid, .. }) if sid == session_id
|
||||
));
|
||||
|
||||
let stopped = rx.try_recv();
|
||||
assert!(matches!(
|
||||
stopped,
|
||||
Ok(Response::AppState { session_id: sid, state: AppStateKind::Stopped }) if sid == session_id
|
||||
));
|
||||
|
||||
let _ = std::fs::remove_file(&script);
|
||||
// SAFETY: single-threaded test; restoring env to prior state.
|
||||
unsafe {
|
||||
|
|
|
|||
Loading…
Reference in a new issue