diff --git a/test/integration/scheduler_perf/scheduler_bench_test.go b/test/integration/scheduler_perf/scheduler_bench_test.go index 0ba245ae2c8..77d61b4a1f6 100644 --- a/test/integration/scheduler_perf/scheduler_bench_test.go +++ b/test/integration/scheduler_perf/scheduler_bench_test.go @@ -408,6 +408,9 @@ func benchmarkScheduling(numNodes, numExistingPods, minPods int, // Since the total amount of time is relatively large, it might not be a concern. time.Sleep(100 * time.Millisecond) } + + // Note: without this line we're taking the overhead of defer() into account. + b.StopTimer() } // makeBasePodWithSecrets creates a Pod object to be used as a template.