Skip to content

Commit

Permalink
[forge][chaos-mesh] fix chaos applied check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ibalajiarun committed Oct 4, 2024
1 parent ced4a0b commit 8111a18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testsuite/forge/src/backend/k8s/swarm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -791,6 +792,8 @@ fn check_all_injected(status: &Option<ChaosStatus>) -> 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
})
})
}
Expand Down

0 comments on commit 8111a18

Please sign in to comment.