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 b7c4e39
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
Expand Up @@ -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
})
})
}
Expand Down

0 comments on commit b7c4e39

Please sign in to comment.