From d3c3c15b1769c7167fb4188dbdb95b8f1d24c5e5 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 30 Jun 2010 18:57:27 +1000 Subject: [PATCH] http: client_test nil pointer fix Fixes #893. R=rsc CC=golang-dev https://golang.org/cl/1687045 --- src/pkg/http/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/http/client_test.go b/src/pkg/http/client_test.go index a916b12e24..013653a829 100644 --- a/src/pkg/http/client_test.go +++ b/src/pkg/http/client_test.go @@ -32,7 +32,7 @@ func TestClient(t *testing.T) { func TestClientHead(t *testing.T) { r, err := Head("http://www.google.com/robots.txt") if err != nil { - t.Error(err) + t.Fatal(err) } if _, ok := r.Header["Last-Modified"]; !ok { t.Error("Last-Modified header not found.") -- 2.50.0