From 929070ee621603ca0d71ffeae6d2d2893813023f Mon Sep 17 00:00:00 2001 From: David Symonds Date: Wed, 9 Nov 2011 16:11:47 +1100 Subject: [PATCH] net/http: use t.Errorf from alternate goroutine in test. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5348051 --- src/pkg/net/http/sniff_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/net/http/sniff_test.go b/src/pkg/net/http/sniff_test.go index 56d589a150..86744eeb56 100644 --- a/src/pkg/net/http/sniff_test.go +++ b/src/pkg/net/http/sniff_test.go @@ -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()