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 <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Thomas Bruyelle 2018-06-22 11:16:40 +02:00 committed by Brad Fitzpatrick
parent b8d4d0218b
commit 75fdeaa801
1 changed files with 1 additions and 1 deletions

View File

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