From 6d291ddc21b7420e4385bbe2008b0ae9e4760707 Mon Sep 17 00:00:00 2001 From: YamasouA Date: Thu, 13 Feb 2025 23:41:00 +0900 Subject: [PATCH] fix lint --- test/integration/scheduler_perf/scheduler_perf.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/integration/scheduler_perf/scheduler_perf.go b/test/integration/scheduler_perf/scheduler_perf.go index 1a126c8de48..318d181c0a5 100644 --- a/test/integration/scheduler_perf/scheduler_perf.go +++ b/test/integration/scheduler_perf/scheduler_perf.go @@ -1597,7 +1597,7 @@ func (e *WorkloadExecutor) runCreateNamespaceOp(opIndex int, op *createNamespace if err := nsPreparer.prepare(*e.tCtx); err != nil { err2 := nsPreparer.cleanup(*e.tCtx) if err2 != nil { - err = fmt.Errorf("prepare: %v; cleanup: %v", err, err2) + err = fmt.Errorf("prepare: %w; cleanup: %w", err, err2) } (*e.tCtx).Fatalf("op %d: %v", opIndex, err) } @@ -1641,10 +1641,9 @@ func (e *WorkloadExecutor) runBarrierOp(opIndex int, op *barrierOp) { } func (e *WorkloadExecutor) runStopCollectingMetrics(opIndex int) { - collectorCtx := *e.collectorCtx - items := stopCollectingMetrics(*e.tCtx, collectorCtx, e.collectorWG, e.workload.Threshold, *e.workload.ThresholdMetricSelector, opIndex, e.collectors) + items := stopCollectingMetrics(*e.tCtx, *e.collectorCtx, e.collectorWG, e.workload.Threshold, *e.workload.ThresholdMetricSelector, opIndex, e.collectors) e.dataItems = append(e.dataItems, items...) - collectorCtx = nil + *e.collectorCtx = nil } func (e *WorkloadExecutor) runCreatePodsOp(opIndex int, op *createPodsOp) {