github.com/okex/exchain@v1.8.0/libs/tendermint/privval/utils_test.go (about) 1 package privval 2 3 import ( 4 "testing" 5 6 "github.com/pkg/errors" 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestIsConnTimeoutForNonTimeoutErrors(t *testing.T) { 11 assert.False(t, IsConnTimeout(errors.Wrap(ErrDialRetryMax, "max retries exceeded"))) 12 assert.False(t, IsConnTimeout(errors.New("completely irrelevant error"))) 13 }