Skip to content

Commit b414039

Browse files
authored
Merge pull request kubernetes#127395 from macsko/fix_scheduler_perf_log_when_deleting_pod_failed
Fix opIndex in log when deleting pod failed in scheduler_perf
2 parents 7448e67 + 2d4d7e0 commit b414039

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)