From d5c3c6e86c7e7666b37b009450dbe27cc9da7531 Mon Sep 17 00:00:00 2001 From: Balaji Arun Date: Fri, 4 Oct 2024 13:11:24 -0700 Subject: [PATCH] [forge][chaos-mesh] fix chaos applied check condition --- testsuite/forge/src/backend/k8s/swarm.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuite/forge/src/backend/k8s/swarm.rs b/testsuite/forge/src/backend/k8s/swarm.rs index 4d3c30e31801e..9009848f9d464 100644 --- a/testsuite/forge/src/backend/k8s/swarm.rs +++ b/testsuite/forge/src/backend/k8s/swarm.rs @@ -791,6 +791,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 }) }) }