mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
15 lines
361 B
Go
15 lines
361 B
Go
|
package privval
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
cmn "github.com/tendermint/tendermint/libs/common"
|
||
|
)
|
||
|
|
||
|
func TestIsConnTimeoutForNonTimeoutErrors(t *testing.T) {
|
||
|
assert.False(t, IsConnTimeout(cmn.ErrorWrap(ErrDialRetryMax, "max retries exceeded")))
|
||
|
assert.False(t, IsConnTimeout(fmt.Errorf("completely irrelevant error")))
|
||
|
}
|