Convert index variable to interface{}

This commit is contained in:
Gaurav Singh
2020-04-26 11:10:00 -04:00
parent 98051aaba2
commit 8240f21753

View File

@@ -58,15 +58,14 @@ var _ = instrumentation.SIGDescribe("Logging soak [Performance] [Slow] [Disrupti
var wg sync.WaitGroup
wg.Add(loggingSoak.Scale)
for i := 0; i < loggingSoak.Scale; i++ {
i := i
go func() {
go func(i interface{}) {
defer wg.Done()
defer ginkgo.GinkgoRecover()
wave := fmt.Sprintf("wave%v", strconv.Itoa(i))
framework.Logf("Starting logging soak, wave = %v", wave)
RunLogPodsWithSleepOf(f, kbRateInSeconds, wave, totalLogTime)
framework.Logf("Completed logging soak, wave %v", i)
}()
}(i)
// Niceness.
time.Sleep(loggingSoak.TimeBetweenWaves)
}