summaryrefslogtreecommitdiff
path: root/compat/json/borrowed_stream_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'compat/json/borrowed_stream_test.go')
-rw-r--r--compat/json/borrowed_stream_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/compat/json/borrowed_stream_test.go b/compat/json/borrowed_stream_test.go
index 50478f0..80f6f03 100644
--- a/compat/json/borrowed_stream_test.go
+++ b/compat/json/borrowed_stream_test.go
@@ -9,7 +9,6 @@ package json
import (
"bytes"
"io"
- "log"
"net"
"net/http"
"net/http/httptest"
@@ -460,7 +459,7 @@ func TestHTTPDecoding(t *testing.T) {
defer ts.Close()
res, err := http.Get(ts.URL)
if err != nil {
- log.Fatalf("GET failed: %v", err)
+ t.Fatalf("GET failed: %v", err) // MODIFIED: changed from log.Fatalf to t.Fatalf
}
defer res.Body.Close()