Commit 929070ee authored by David Symonds's avatar David Symonds

net/http: use t.Errorf from alternate goroutine in test.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5348051
parent 9c6a73e4
......@@ -92,7 +92,7 @@ func TestContentTypeWithCopy(t *testing.T) {
buf := bytes.NewBuffer([]byte(input))
n, err := io.Copy(w, buf)
if int(n) != len(input) || err != nil {
t.Fatalf("io.Copy(w, %q) = %v, %v want %d, nil", input, n, err, len(input))
t.Errorf("io.Copy(w, %q) = %v, %v want %d, nil", input, n, err, len(input))
}
}))
defer ts.Close()
......
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