Fix opIndex in log when deleting pod failed in scheduler_perf

This commit is contained in:
Maciej Skoczeń 2024-09-16 13:48:24 +00:00
parent 856475e5ff
commit 2d4d7e0b5f

View File

@ -1239,7 +1239,7 @@ func runWorkload(tCtx ktesting.TContext, tc *testCase, w *workload, informerFact
defer ticker.Stop()
wg.Add(1)
go func() {
go func(opIndex int) {
defer wg.Done()
for i := 0; i < len(pods); i++ {
select {
@ -1254,7 +1254,7 @@ func runWorkload(tCtx ktesting.TContext, tc *testCase, w *workload, informerFact
return
}
}
}()
}(opIndex)
}
case *churnOp: