Commit 1a04b4ab authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

net/http/httputil: t.Error -> t.Errorf

Found by vet.

Change-Id: I09b79d68c7a5fc97e0edda4700a82bfbb00a4f45
Reviewed-on: https://go-review.googlesource.com/28486
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarMichael Hudson-Doyle <michael.hudson@canonical.com>
parent db9796da
...@@ -342,7 +342,7 @@ func TestReverseProxyCancelation(t *testing.T) { ...@@ -342,7 +342,7 @@ func TestReverseProxyCancelation(t *testing.T) {
}() }()
res, err := http.DefaultClient.Do(getReq) res, err := http.DefaultClient.Do(getReq)
if res != nil { if res != nil {
t.Error("got response %v; want nil", res.Status) t.Errorf("got response %v; want nil", res.Status)
} }
if err == nil { if err == nil {
// This should be an error like: // This should be an error like:
......
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