diff --git a/test/bats/test.bats b/test/bats/test.bats index 9fbc797ef..0118210ff 100755 --- a/test/bats/test.bats +++ b/test/bats/test.bats @@ -102,7 +102,7 @@ setup() { local name=$(yq e .metadata.name "$sample"/constraint.yaml) wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "constraint_enforced $kind $name" - if [ vapb_exists == true ]; then + if [ $vapb_exists ]; then wait_for_process ${WAIT_TIME} ${SLEEP_TIME} "kubectl get ValidatingAdmissionPolicyBinding gatekeeper-$name" deny_substr="ValidatingAdmissionPolicy" fi