mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
Fix calling range variable from goroutine
This commit is contained in:
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
Block a user