Commit 2637dab0 authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Measure latency metrics before removing namespace

parent 800012df
...@@ -115,9 +115,6 @@ var _ = Describe("Density [Skipped]", func() { ...@@ -115,9 +115,6 @@ var _ = Describe("Density [Skipped]", func() {
var ns string var ns string
var uuid string var uuid string
framework := NewFramework("density")
framework.NamespaceDeletionTimeout = time.Hour
// Gathers data prior to framework namespace teardown // Gathers data prior to framework namespace teardown
AfterEach(func() { AfterEach(func() {
// Remove any remaining pods from this test if the // Remove any remaining pods from this test if the
...@@ -151,6 +148,11 @@ var _ = Describe("Density [Skipped]", func() { ...@@ -151,6 +148,11 @@ var _ = Describe("Density [Skipped]", func() {
expectNoError(VerifySchedulerLatency()) 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() { BeforeEach(func() {
c = framework.Client c = framework.Client
ns = framework.Namespace.Name ns = framework.Namespace.Name
......
...@@ -65,6 +65,8 @@ var _ = Describe("[Performance] Load capacity [Skipped]", func() { ...@@ -65,6 +65,8 @@ var _ = Describe("[Performance] Load capacity [Skipped]", func() {
Expect(highLatencyRequests).NotTo(BeNumerically(">", 0)) 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 := NewFramework("load")
framework.NamespaceDeletionTimeout = time.Hour framework.NamespaceDeletionTimeout = time.Hour
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment