1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:04:44 -07:00

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

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5348051
This commit is contained in:
David Symonds 2011-11-09 16:11:47 +11:00
parent 9c6a73e478
commit 929070ee62

View File

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