mirror of
https://github.com/golang/go
synced 2024-11-21 22:04:39 -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:
parent
9c6a73e478
commit
929070ee62
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user