Commit d36271a3 authored by Robert Hencke's avatar Robert Hencke Committed by Brad Fitzpatrick

http: fix incorrect prints found by govet

R=golang-dev, bradfitzgo
CC=golang-dev
https://golang.org/cl/4370053
parent 8c1a7035
...@@ -288,10 +288,10 @@ func TestTransportHeadResponses(t *testing.T) { ...@@ -288,10 +288,10 @@ func TestTransportHeadResponses(t *testing.T) {
t.Errorf("error on loop %d: %v", i, err) t.Errorf("error on loop %d: %v", i, err)
} }
if e, g := "123", res.Header.Get("Content-Length"); e != g { if e, g := "123", res.Header.Get("Content-Length"); e != g {
t.Errorf("loop %d: expected Content-Length header of %q, got %q", e, g) t.Errorf("loop %d: expected Content-Length header of %q, got %q", i, e, g)
} }
if e, g := int64(0), res.ContentLength; e != g { if e, g := int64(0), res.ContentLength; e != g {
t.Errorf("loop %d: expected res.ContentLength of %v, got %v", e, g) t.Errorf("loop %d: expected res.ContentLength of %v, got %v", i, e, g)
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment