mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
db9796dac5
commit
1a04b4abe7
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue