From 68bae382b1cb96066dff5d74631ead87d9eb0316 Mon Sep 17 00:00:00 2001 From: wojtekt Date: Wed, 14 Nov 2018 10:17:40 +0100 Subject: [PATCH] Fix density test --- test/e2e/scalability/density.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/scalability/density.go b/test/e2e/scalability/density.go index 4449d69dc2a..3d4d9a6e21e 100644 --- a/test/e2e/scalability/density.go +++ b/test/e2e/scalability/density.go @@ -728,6 +728,8 @@ var _ = SIGDescribe("Density", func() { }) } e2eStartupTime = runDensityTest(dConfig, testPhaseDurations, &scheduleThroughputs) + defer cleanupDensityTest(dConfig, testPhaseDurations) + if itArg.runLatencyTest { // Pick latencyPodsIterations so that: // latencyPodsIterations * nodeCount >= MinPodStartupMeasurements. @@ -969,7 +971,6 @@ var _ = SIGDescribe("Density", func() { framework.LogSuspiciousLatency(startupLag, e2eLag, nodeCount, c) } - cleanupDensityTest(dConfig, testPhaseDurations) }) } })