From: Thomas Bruyelle Date: Fri, 22 Jun 2018 09:16:40 +0000 (+0200) Subject: net/http: fix test assertion X-Git-Tag: go1.11beta1~29 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=75fdeaa801bc64b8b720433a868e1be197d03eaf;p=gostls13.git net/http: fix test assertion Logf doesn't make the test fail, so the test was always OK. Change-Id: I7c10ee74ff7e5d28cbd3a35e185093cb9f349470 Reviewed-on: https://go-review.googlesource.com/120496 Run-TryBot: Tobias Klauser Reviewed-by: Brad Fitzpatrick --- diff --git a/src/net/http/transfer_test.go b/src/net/http/transfer_test.go index 9a201aab2d..993ea4ef18 100644 --- a/src/net/http/transfer_test.go +++ b/src/net/http/transfer_test.go @@ -86,7 +86,7 @@ func TestDetectInMemoryReaders(t *testing.T) { for i, tt := range tests { got := isKnownInMemoryReader(tt.r) if got != tt.want { - t.Logf("%d: got = %v; want %v", i, got, tt.want) + t.Errorf("%d: got = %v; want %v", i, got, tt.want) } } }