]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: use t.Errorf from alternate goroutine in test.
authorDavid Symonds <dsymonds@golang.org>
Wed, 9 Nov 2011 05:11:47 +0000 (16:11 +1100)
committerDavid Symonds <dsymonds@golang.org>
Wed, 9 Nov 2011 05:11:47 +0000 (16:11 +1100)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5348051

src/pkg/net/http/sniff_test.go

index 56d589a150161078115b88aab751c86c4ebed44a..86744eeb56b762f22e517e6ece559ff023baf704 100644 (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()