summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-06-30 18:57:27 +1000
committerAndrew Gerrand <adg@golang.org>2010-06-30 18:57:27 +1000
commit84cdef467e565d5fa3e43cc7b4307211cb17af30 (patch)
treef679b8a10a6a76fea23724f59a0ef8d09aa1dd65 /src
parente755108e7e59857f1fad471d7552966c0f5ddc33 (diff)
downloadgolang-84cdef467e565d5fa3e43cc7b4307211cb17af30.tar.gz
http: client_test nil pointer fix
Fixes issue 893. R=rsc CC=golang-dev http://codereview.appspot.com/1687045
Diffstat (limited to 'src')
-rw-r--r--src/pkg/http/client_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/client_test.go b/src/pkg/http/client_test.go
index a916b12e2..013653a82 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.")