Skip to content

Commit 7efa37f

Browse files
committed
Quiet log spam in test.
1 parent dbc1514 commit 7efa37f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tcpproxy_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import (
2727
"fmt"
2828
"io"
2929
"io/ioutil"
30+
"log"
3031
"math/big"
3132
"net"
33+
"os"
3234
"strings"
3335
"testing"
3436
"time"
@@ -441,6 +443,9 @@ func readTLS(dest, domain string) (string, error) {
441443
}
442444

443445
func TestProxyACME(t *testing.T) {
446+
log.SetOutput(ioutil.Discard)
447+
defer log.SetOutput(os.Stderr)
448+
444449
front := newLocalListener(t)
445450
defer front.Close()
446451

0 commit comments

Comments
 (0)