https://github.com/tendermint/tendermint
Raw File
Tip revision: c620900fdd98838e29debdc47243e03f13d3ef05 authored by M. J. Fromberger on 17 May 2022, 17:34:43 UTC
rpc: fix plumbing of broadcast_tx_commit timeout (#8573)
Tip revision: c620900
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