From 7efa37ff5079eba4a39ddda1b79f65fc81c759e3 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 20 Jun 2018 14:50:11 -0700 Subject: Quiet log spam in test. --- tcpproxy_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tcpproxy_test.go b/tcpproxy_test.go index 83729e3..5d75cc3 100644 --- a/tcpproxy_test.go +++ b/tcpproxy_test.go @@ -27,8 +27,10 @@ import ( "fmt" "io" "io/ioutil" + "log" "math/big" "net" + "os" "strings" "testing" "time" @@ -441,6 +443,9 @@ func readTLS(dest, domain string) (string, error) { } func TestProxyACME(t *testing.T) { + log.SetOutput(ioutil.Discard) + defer log.SetOutput(os.Stderr) + front := newLocalListener(t) defer front.Close() -- cgit v1.2.3