diff --git a/testsuite/forge/src/backend/k8s/swarm.rs b/testsuite/forge/src/backend/k8s/swarm.rs index 4d3c30e31801e4..bbc9a0f8d009ce 100644 --- a/testsuite/forge/src/backend/k8s/swarm.rs +++ b/testsuite/forge/src/backend/k8s/swarm.rs @@ -23,6 +23,7 @@ use aptos_sdk::{ move_types::account_address::AccountAddress, types::{chain_id::ChainId, AccountKey, LocalAccount, PeerId}, }; +use itertools::concat; use k8s_openapi::api::{ apps::v1::StatefulSet, core::v1::{ConfigMap, PersistentVolumeClaim, Service}, @@ -791,6 +792,8 @@ fn check_all_injected(status: &Option) -> bool { .map_or(false, |conditions| { conditions.iter().any(|c| { c.r#type == ChaosConditionType::AllInjected && c.status == ConditionStatus::True + }) && conditions.iter().any(|c| { + c.r#type == ChaosConditionType::Selected && c.status = ConditionStatus::True }) }) }