mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-02 13:23:13 +00:00
Fix k8s runner keeping scenario alive during checks
This commit is contained in:
parent
eb179d1640
commit
83c13b771c
@ -75,10 +75,11 @@ async fn run_k8s_case(
|
||||
let validator_clients = runner.context().node_clients().validator_clients().to_vec();
|
||||
|
||||
info!("running scenario");
|
||||
let _handle = runner
|
||||
// Keep the handle alive until after we query consensus info, so port-forwards
|
||||
// and services stay up while we inspect nodes.
|
||||
let handle = runner
|
||||
.run(&mut plan)
|
||||
.await
|
||||
.map(|_| ())
|
||||
.map_err(|err| format!("k8s scenario failed: {err}"))?;
|
||||
|
||||
for (idx, client) in validator_clients.iter().enumerate() {
|
||||
@ -95,6 +96,9 @@ async fn run_k8s_case(
|
||||
}
|
||||
}
|
||||
|
||||
// Explicitly drop after checks, allowing cleanup to proceed.
|
||||
drop(handle);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user