mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 21:36:24 +00:00
Fix race condition in logging
This commit is contained in:
parent
36eee3ca8a
commit
98051aaba2
@ -58,6 +58,7 @@ var _ = instrumentation.SIGDescribe("Logging soak [Performance] [Slow] [Disrupti
|
|||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
wg.Add(loggingSoak.Scale)
|
wg.Add(loggingSoak.Scale)
|
||||||
for i := 0; i < loggingSoak.Scale; i++ {
|
for i := 0; i < loggingSoak.Scale; i++ {
|
||||||
|
i := i
|
||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
defer ginkgo.GinkgoRecover()
|
defer ginkgo.GinkgoRecover()
|
||||||
|
Loading…
Reference in New Issue
Block a user