https://github.com/tendermint/tendermint
Raw File
Tip revision: b87431cef79820bde998377c6c6b0816b6b4b2c5 authored by tycho garen on 24 August 2021, 17:24:08 UTC
e2e: more consistent node selection during tests
Tip revision: b87431c
utils_test.go
package privval

import (
	"errors"
	"fmt"
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestIsConnTimeoutForNonTimeoutErrors(t *testing.T) {
	assert.False(t, IsConnTimeout(fmt.Errorf("max retries exceeded: %w", ErrDialRetryMax)))
	assert.False(t, IsConnTimeout(errors.New("completely irrelevant error")))
}
back to top