diff --git a/test/e2e/density.go b/test/e2e/density.go index cfe112c23a4..b8db0080c1d 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 e77ef36ad25..7a4fde8f1c0 100644 --- a/test/e2e/load.go +++ b/test/e2e/load.go @@ -64,6 +64,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