Skip to content

Commit

Permalink
net/http: remove some log spam in test, add missing error detail
Browse files Browse the repository at this point in the history
Updates #22540

Change-Id: I26e79c25652976fac6f2e5a7afb4fd1240996d74
Reviewed-on: https://go-review.googlesource.com/75531
Reviewed-by: Tom Bergan <tombergan@google.com>
Run-TryBot: Tom Bergan <tombergan@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
  • Loading branch information
bradfitz committed Nov 2, 2017
1 parent 08f19bb commit ad3742f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/net/http/transport_test.go
Expand Up @@ -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
}

Expand Down

0 comments on commit ad3742f

Please sign in to comment.