diff options
Diffstat (limited to 'src/pkg/http/client_test.go')
-rw-r--r-- | src/pkg/http/client_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/http/client_test.go b/src/pkg/http/client_test.go index 919e556e4..f697fb856 100644 --- a/src/pkg/http/client_test.go +++ b/src/pkg/http/client_test.go @@ -24,9 +24,8 @@ func TestClient(t *testing.T) { b, err = io.ReadAll(r.Body); r.Body.Close(); } - if err != nil { - t.Errorf("Error fetching URL: %v", err); + t.Error(err); } else if s := string(b); !strings.HasPrefix(s, "User-agent:") { t.Errorf("Incorrect page body (did not begin with User-agent): %q", s); } |