mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-07 07:43:09 +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();
|
let validator_clients = runner.context().node_clients().validator_clients().to_vec();
|
||||||
|
|
||||||
info!("running scenario");
|
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)
|
.run(&mut plan)
|
||||||
.await
|
.await
|
||||||
.map(|_| ())
|
|
||||||
.map_err(|err| format!("k8s scenario failed: {err}"))?;
|
.map_err(|err| format!("k8s scenario failed: {err}"))?;
|
||||||
|
|
||||||
for (idx, client) in validator_clients.iter().enumerate() {
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user