From: Andrew Gerrand Date: Wed, 30 Jun 2010 08:57:27 +0000 (+1000) Subject: http: client_test nil pointer fix X-Git-Tag: weekly.2010-07-01~22 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d3c3c15b1769c7167fb4188dbdb95b8f1d24c5e5;p=gostls13.git http: client_test nil pointer fix Fixes #893. R=rsc CC=golang-dev https://golang.org/cl/1687045 --- 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.")