mirror of https://github.com/k3s-io/k3s
Fix calling range variable from goroutine
parent
9ecbb0ae05
commit
8dda27f9d4
|
@ -80,6 +80,7 @@ func (cm *chaosmonkey) Do() {
|
|||
stopCh := make(chan struct{})
|
||||
|
||||
for _, test := range cm.tests {
|
||||
test := test
|
||||
sem := newSemaphore(stopCh)
|
||||
sems = append(sems, sem)
|
||||
go func() {
|
||||
|
|
Loading…
Reference in New Issue