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 cca3c30 commit d5c3c6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testsuite/forge/src/backend/k8s/swarm.rs
Original file line number Diff line number Diff line change
@@ -791,6 +791,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
})
})
}

0 comments on commit d5c3c6e

Please sign in to comment.