Commit bfd3c223 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

net: fix data race in test

Fixes #7157.

R=alex.brainman, bradfitz
CC=golang-codereviews
https://golang.org/cl/54880043
parent 90eca36a
......@@ -107,7 +107,7 @@ func TestAcceptIgnoreSomeErrors(t *testing.T) {
result := make(chan error)
go func() {
time.Sleep(alittle)
err = send(ln.Addr().String(), "abc")
err := send(ln.Addr().String(), "abc")
if err != nil {
result <- err
}
......
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