]> Cypherpunks repositories - gostls13.git/commitdiff
http: client_test nil pointer fix
authorAndrew Gerrand <adg@golang.org>
Wed, 30 Jun 2010 08:57:27 +0000 (18:57 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 30 Jun 2010 08:57:27 +0000 (18:57 +1000)
Fixes #893.

R=rsc
CC=golang-dev
https://golang.org/cl/1687045

src/pkg/http/client_test.go

index a916b12e240fbc6c762058dcd51946e512c36e9a..013653a829695d63dd48b0da3ba94aad4b438c92 100644 (file)
@@ -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.")