Skip to content

Commit 2d4d7e0

Browse files
committed
Fix opIndex in log when deleting pod failed in scheduler_perf
1 parent 856475e commit 2d4d7e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/scheduler_perf/scheduler_perf.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ func runWorkload(tCtx ktesting.TContext, tc *testCase, w *workload, informerFact
12391239
defer ticker.Stop()
12401240

12411241
wg.Add(1)
1242-
go func() {
1242+
go func(opIndex int) {
12431243
defer wg.Done()
12441244
for i := 0; i < len(pods); i++ {
12451245
select {
@@ -1254,7 +1254,7 @@ func runWorkload(tCtx ktesting.TContext, tc *testCase, w *workload, informerFact
12541254
return
12551255
}
12561256
}
1257-
}()
1257+
}(opIndex)
12581258
}
12591259

12601260
case *churnOp:

0 commit comments

Comments
 (0)