Fix calling range variable from goroutine

pull/6/head
Isaac Hollander McCreery 2016-04-29 10:58:44 -07:00
parent 9ecbb0ae05
commit 8dda27f9d4
1 changed files with 1 additions and 0 deletions

View File

@ -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() {