Commit ad3742f4 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net/http: remove some log spam in test, add missing error detail

Updates #22540

Change-Id: I26e79c25652976fac6f2e5a7afb4fd1240996d74
Reviewed-on: https://go-review.googlesource.com/75531Reviewed-by: 's avatarTom Bergan <tombergan@google.com>
Run-TryBot: Tom Bergan <tombergan@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 08f19bbd
......@@ -1113,15 +1113,14 @@ func TestTransportProxy(t *testing.T) {
Header: make(Header),
}
log.Printf("Dialing %s", r.URL.Host)
targetConn, err := net.Dial("tcp", r.URL.Host)
if err != nil {
t.Errorf("net.Dial failed")
t.Errorf("net.Dial(%q) failed: %v", r.URL.Host, err)
return
}
if err := res.Write(clientConn); err != nil {
t.Errorf("Writing 200 OK failed")
t.Errorf("Writing 200 OK failed: %v", err)
return
}
......
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