Silence log warnings during test run

This commit is contained in:
Harlow Ward 2015-05-23 12:48:31 -07:00
parent 95fe49e7e0
commit b38102eec7

View file

@ -2,6 +2,8 @@ package connector
import (
"fmt"
"io/ioutil"
"log"
"net"
"testing"
@ -10,6 +12,8 @@ import (
)
func Test_isRecoverableError(t *testing.T) {
log.SetOutput(ioutil.Discard)
testCases := []struct {
err error
isRecoverable bool