aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/httputil
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2016-09-04 14:52:59 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2016-09-04 22:17:14 +0000
commit1a04b4abe78a152da5ccd801bf13a1df7ddfa8aa (patch)
tree435b7b4933eb37d6be6c442cfb49533efc2b2fe7 /src/net/http/httputil
parentdb9796dac50c65d300d2b262f2f107d86bf1703f (diff)
downloadgo-1a04b4abe78a152da5ccd801bf13a1df7ddfa8aa.tar.xz
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: Michael Hudson-Doyle <michael.hudson@canonical.com>
Diffstat (limited to 'src/net/http/httputil')
-rw-r--r--src/net/http/httputil/reverseproxy_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/httputil/reverseproxy_test.go b/src/net/http/httputil/reverseproxy_test.go
index 8e181dbb04..8ab57b4cbb 100644
--- a/src/net/http/httputil/reverseproxy_test.go
+++ b/src/net/http/httputil/reverseproxy_test.go
@@ -342,7 +342,7 @@ func TestReverseProxyCancelation(t *testing.T) {
}()
res, err := http.DefaultClient.Do(getReq)
if res != nil {
- t.Error("got response %v; want nil", res.Status)
+ t.Errorf("got response %v; want nil", res.Status)
}
if err == nil {
// This should be an error like: