aboutsummaryrefslogtreecommitdiff
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
commitd3c3c15b1769c7167fb4188dbdb95b8f1d24c5e5 (patch)
tree4d55ebab1587d5631ff506add1c34c779d7d1167
parent4f340f5051ea94d529b1fcd182f61b20b2b41e85 (diff)
downloadgo-d3c3c15b1769c7167fb4188dbdb95b8f1d24c5e5.tar.gz
go-d3c3c15b1769c7167fb4188dbdb95b8f1d24c5e5.zip
http: client_test nil pointer fix
Fixes #893. R=rsc CC=golang-dev https://golang.org/cl/1687045
-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 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.")