diff --git a/test/e2e/spidermultus/spidermultus_test.go b/test/e2e/spidermultus/spidermultus_test.go index 8376fc8ef9..63dcf25bb6 100644 --- a/test/e2e/spidermultus/spidermultus_test.go +++ b/test/e2e/spidermultus/spidermultus_test.go @@ -32,13 +32,11 @@ var _ = Describe("test spidermultus", Label("SpiderMultusConfig", "overlay"), fu namespace = "ns-" + common.GenerateString(10, true) err := frame.CreateNamespaceUntilDefaultServiceAccountReady(namespace, common.ServiceAccountReadyTimeout) Expect(err).NotTo(HaveOccurred()) - DeferCleanup(func() { if CurrentSpecReport().Failed() { GinkgoWriter.Println("If the use case fails, the cleanup step will be skipped") return } - err := frame.DeleteNamespace(namespace) Expect(err).NotTo(HaveOccurred(), "Failed to delete namespace %v") })