Silence log warnings during test run
This commit is contained in:
parent
95fe49e7e0
commit
b38102eec7
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue