Commit 315b361f authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

zip: fix data race in test

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5492073
parent d2933e99
...@@ -163,10 +163,10 @@ func readTestZip(t *testing.T, zt ZipTest) { ...@@ -163,10 +163,10 @@ func readTestZip(t *testing.T, zt ZipTest) {
done := make(chan bool) done := make(chan bool)
for i := 0; i < 5; i++ { for i := 0; i < 5; i++ {
for j, ft := range zt.File { for j, ft := range zt.File {
go func() { go func(j int, ft ZipTestFile) {
readTestFile(t, ft, z.File[j]) readTestFile(t, ft, z.File[j])
done <- true done <- true
}() }(j, ft)
n++ n++
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment