]> Cypherpunks repositories - gostls13.git/commit
net/http: direct server logs to test output in tests
authorDamien Neil <dneil@google.com>
Fri, 18 Nov 2022 19:33:53 +0000 (11:33 -0800)
committerDamien Neil <dneil@google.com>
Sat, 19 Nov 2022 01:19:45 +0000 (01:19 +0000)
commitc6cdfd88c762ee746cd9579ae57e528f56f5dd00
tree0f2af9db073dab7f55bdc7ae99c8e3f311717f57
parent4f0d3bcd6d2d6bc726044153bf6875d195203b32
net/http: direct server logs to test output in tests

Set a logger in newClientServerTest that directs the server
log output to the testing.T's log, so log output gets properly
associated with the test that caused it.

Change-Id: I13686ca35c3e21adae16b2fc37ce36daea3df9d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/452075
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/net/http/clientserver_test.go
src/net/http/serve_test.go