diff --git a/test/e2e/density.go b/test/e2e/density.go index 680b98a67a4..39e1f1f75b7 100644 --- a/test/e2e/density.go +++ b/test/e2e/density.go @@ -115,9 +115,6 @@ var _ = Describe("Density [Skipped]", func() { var ns string var uuid string - framework := NewFramework("density") - framework.NamespaceDeletionTimeout = time.Hour - // Gathers data prior to framework namespace teardown AfterEach(func() { // Remove any remaining pods from this test if the @@ -151,6 +148,11 @@ var _ = Describe("Density [Skipped]", func() { expectNoError(VerifySchedulerLatency()) }) + // Explicitly put here, to delete namespace at the end of the test + // (after measuring latency metrics, etc.). + framework := NewFramework("density") + framework.NamespaceDeletionTimeout = time.Hour + BeforeEach(func() { c = framework.Client ns = framework.Namespace.Name diff --git a/test/e2e/load.go b/test/e2e/load.go index 003a4b51a65..ad597d0422b 100644 --- a/test/e2e/load.go +++ b/test/e2e/load.go @@ -65,6 +65,8 @@ var _ = Describe("[Performance] Load capacity [Skipped]", func() { Expect(highLatencyRequests).NotTo(BeNumerically(">", 0)) }) + // Explicitly put here, to delete namespace at the end of the test + // (after measuring latency metrics, etc.). framework := NewFramework("load") framework.NamespaceDeletionTimeout = time.Hour