From 3aab812bca39da0fe403b6b300a12bae58442fd0 Mon Sep 17 00:00:00 2001 From: teselil Date: Tue, 11 Jul 2023 18:13:13 +0300 Subject: [PATCH] fix: test --- pkg/controllers/validationController_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controllers/validationController_test.go b/pkg/controllers/validationController_test.go index 738a7947..ab07d1a2 100644 --- a/pkg/controllers/validationController_test.go +++ b/pkg/controllers/validationController_test.go @@ -167,7 +167,7 @@ func TestValidateRequestBodyWithNotAllowedK8sResourceBypassed(t *testing.T) { func TestValidateRequestBodyWithNotAllowedK8sResourceEnforceModeOff(t *testing.T) { setMockEnv(t) - t.Setenv(enums.EnabledWarnings, "[failedPolicyCheck]") + t.Setenv(enums.EnabledWarnings, "failedPolicyCheck") t.Setenv(enums.Enforce, "false") var applyRequestNotAllowed admission.AdmissionReview