]> Cypherpunks repositories - gostls13.git/commit
net/http: quiet some log spam in tests
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 28 May 2019 17:45:22 +0000 (17:45 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 28 May 2019 18:17:57 +0000 (18:17 +0000)
commit770746af1cf7900cb770767584abd3251013d932
treed630d606a0f5fd509fb0a5f308f9f649394912ef
parentddb5d0db37b885ba327180816253714625fd3c38
net/http: quiet some log spam in tests

One of these tests creates a bunch of connections concurrently, then
discovers it doesn't need them all, which then makes the server log
that the client went away midway through the TLS handshake. Perhaps
the server should recognize that as a case not worthy of logging
about, but this is a safer way to eliminate the stderr spam during go
test for now.

The other test's client gives up on its connection and closes it,
similarly confusing the server.

Change-Id: I49ce442c9a63fc437e58ca79f044aa76e8c317b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/179179
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/net/http/client_test.go
src/net/http/serve_test.go