Skip to content

Commit 8240f21

Browse files
committed
Convert index variable to interface{}
1 parent 98051aa commit 8240f21

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/e2e/instrumentation/logging/generic_soak.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,14 @@ var _ = instrumentation.SIGDescribe("Logging soak [Performance] [Slow] [Disrupti
5858
var wg sync.WaitGroup
5959
wg.Add(loggingSoak.Scale)
6060
for i := 0; i < loggingSoak.Scale; i++ {
61-
i := i
62-
go func() {
61+
go func(i interface{}) {
6362
defer wg.Done()
6463
defer ginkgo.GinkgoRecover()
6564
wave := fmt.Sprintf("wave%v", strconv.Itoa(i))
6665
framework.Logf("Starting logging soak, wave = %v", wave)
6766
RunLogPodsWithSleepOf(f, kbRateInSeconds, wave, totalLogTime)
6867
framework.Logf("Completed logging soak, wave %v", i)
69-
}()
68+
}(i)
7069
// Niceness.
7170
time.Sleep(loggingSoak.TimeBetweenWaves)
7271
}

0 commit comments

Comments
 (0)