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 (
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue