Skip to content

Commit 853684b

Browse files
committed
test(supervisor): align HA fixtures with suspend support
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 7daf6c5 commit 853684b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎crates/openshell-supervisor/src/backend_setup/tests.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,8 @@ async fn suspend_signal_exits_without_terminating_boundary() {
10501050
provider_workload_api_socket: None,
10511051
// The binary loads the proxy trust directory from its environment.
10521052
proxy_tls: openshell_supervisor_network::run::ProxyTlsFiles::from_environment(),
1053+
takeover: None,
1054+
supervisor_recovery_timeout_secs: None,
10531055
};
10541056
let bindings = crate::SandboxInstanceBindings::dedicated(
10551057
&config,

‎crates/openshell-supervisor/src/sandbox_instance_host.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,9 @@ mod tests {
10781078
for key in ["alpha", "beta"] {
10791079
assert!(host.status(key).unwrap().ready);
10801080
}
1081-
host.remove_all(Duration::from_secs(1)).await;
1081+
for key in ["alpha", "beta"] {
1082+
host.remove(key, Duration::from_secs(1)).await;
1083+
}
10821084
assert!(!host.request_suspend("alpha"));
10831085
}
10841086

0 commit comments

Comments
 (0)