From f9140117a33bc99080a4541bbcf2ff153ee562b5 Mon Sep 17 00:00:00 2001 From: m-szalik Date: Sat, 27 Jul 2024 01:05:26 +0200 Subject: [PATCH] Cleanup aftert test should remove namespace (#6791) --- testdata/go/v4/memcached-operator/test/e2e/e2e_test.go | 2 +- .../go/v4/monitoring/memcached-operator/test/e2e/e2e_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testdata/go/v4/memcached-operator/test/e2e/e2e_test.go b/testdata/go/v4/memcached-operator/test/e2e/e2e_test.go index 0d07bc23e17..71541dd9219 100644 --- a/testdata/go/v4/memcached-operator/test/e2e/e2e_test.go +++ b/testdata/go/v4/memcached-operator/test/e2e/e2e_test.go @@ -84,7 +84,7 @@ var _ = Describe("memcached", Ordered, func() { utils.UninstallCertManager() By("removing manager namespace") - cmd := exec.Command("kubectl", "create", "ns", namespace) + cmd := exec.Command("kubectl", "delete", "ns", namespace) _, _ = utils.Run(cmd) }) diff --git a/testdata/go/v4/monitoring/memcached-operator/test/e2e/e2e_test.go b/testdata/go/v4/monitoring/memcached-operator/test/e2e/e2e_test.go index 7ecea06753b..f73acc23b6c 100644 --- a/testdata/go/v4/monitoring/memcached-operator/test/e2e/e2e_test.go +++ b/testdata/go/v4/monitoring/memcached-operator/test/e2e/e2e_test.go @@ -100,7 +100,7 @@ var _ = Describe("memcached", Ordered, func() { utils.UninstallCertManager() By("removing manager namespace") - cmd := exec.Command("kubectl", "create", "ns", namespace) + cmd := exec.Command("kubectl", "delete", "ns", namespace) _, _ = utils.Run(cmd) })