From 91677966f78d3f51947e179ba10617c8cb1356b4 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 4 Mar 2024 18:26:07 +0530 Subject: [PATCH] Allow more time for test network to produce blocks --- tests/e2e/auction/suite.go | 5 ++++- tests/e2e/bond/suite.go | 5 ++++- tests/e2e/registry/suite.go | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/e2e/auction/suite.go b/tests/e2e/auction/suite.go index ce322258..a5e3c05f 100644 --- a/tests/e2e/auction/suite.go +++ b/tests/e2e/auction/suite.go @@ -4,6 +4,7 @@ import ( "fmt" "os" "path/filepath" + "strings" "cosmossdk.io/math" "github.com/stretchr/testify/suite" @@ -47,7 +48,9 @@ func (ets *E2ETestSuite) SetupSuite() { //nolint: all var err error ets.network, err = network.New(ets.T(), ets.T().TempDir(), ets.cfg) - sr.NoError(err) + if err != nil && !strings.Contains(err.Error(), "timeout exceeded waiting for block") { + sr.NoError(err) + } _, err = ets.network.WaitForHeight(1) sr.NoError(err) diff --git a/tests/e2e/bond/suite.go b/tests/e2e/bond/suite.go index 67f435d9..68e42c84 100644 --- a/tests/e2e/bond/suite.go +++ b/tests/e2e/bond/suite.go @@ -2,6 +2,7 @@ package bond import ( "fmt" + "strings" "cosmossdk.io/math" "github.com/stretchr/testify/suite" @@ -39,7 +40,9 @@ func (ets *E2ETestSuite) SetupSuite() { //nolint: all var err error ets.network, err = network.New(ets.T(), ets.T().TempDir(), ets.cfg) - sr.NoError(err) + if err != nil && !strings.Contains(err.Error(), "timeout exceeded waiting for block") { + sr.NoError(err) + } _, err = ets.network.WaitForHeight(1) sr.NoError(err) diff --git a/tests/e2e/registry/suite.go b/tests/e2e/registry/suite.go index 058a5ff0..9f26531a 100644 --- a/tests/e2e/registry/suite.go +++ b/tests/e2e/registry/suite.go @@ -3,6 +3,7 @@ package registry import ( "fmt" "path/filepath" + "strings" "time" "cosmossdk.io/math" @@ -56,7 +57,9 @@ func (ets *E2ETestSuite) SetupSuite() { ets.cfg.GenesisState = genesisState ets.network, err = network.New(ets.T(), ets.T().TempDir(), ets.cfg) - sr.NoError(err) + if err != nil && !strings.Contains(err.Error(), "timeout exceeded waiting for block") { + sr.NoError(err) + } _, err = ets.network.WaitForHeight(2) sr.NoError(err)