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 ( import (
"fmt" "fmt"
"io/ioutil"
"log"
"net" "net"
"testing" "testing"
@ -10,6 +12,8 @@ import (
) )
func Test_isRecoverableError(t *testing.T) { func Test_isRecoverableError(t *testing.T) {
log.SetOutput(ioutil.Discard)
testCases := []struct { testCases := []struct {
err error err error
isRecoverable bool isRecoverable bool