mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-17 20:56:14 +00:00
improved connection loop
This commit is contained in:
@@ -144,7 +144,7 @@ func (th *TestHarness) Run() {
|
||||
for acceptRetries := th.acceptRetries; acceptRetries > 0; acceptRetries-- {
|
||||
th.logger.Info("Attempting to accept incoming connection", "acceptRetries", acceptRetries)
|
||||
|
||||
if err := th.signerClient.WaitForConnection(5 * time.Second); err != nil {
|
||||
if err := th.signerClient.WaitForConnection(2 * time.Second); err != nil {
|
||||
// if it wasn't a timeout error
|
||||
if _, ok := err.(timeoutError); !ok {
|
||||
th.logger.Error("Failed to start listener", "err", err)
|
||||
|
||||
@@ -73,7 +73,7 @@ const (
|
||||
)
|
||||
|
||||
func TestRemoteSignerTestHarnessMaxAcceptRetriesReached(t *testing.T) {
|
||||
cfg := makeConfig(t, 100, 2)
|
||||
cfg := makeConfig(t, 200, 2)
|
||||
defer cleanup(cfg)
|
||||
|
||||
th, err := NewTestHarness(log.TestingLogger(), cfg)
|
||||
|
||||
Reference in New Issue
Block a user