]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/httputil: t.Error -> t.Errorf
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 4 Sep 2016 21:52:59 +0000 (14:52 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 4 Sep 2016 22:17:14 +0000 (22:17 +0000)
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>
src/net/http/httputil/reverseproxy_test.go

index 8e181dbb04240690aa78a58f83a98c212e75316e..8ab57b4cbb020f4411f4f73067a90ba9f0ae706d 100644 (file)
@@ -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: