Allow more time for test network to produce blocks
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 2m3s
E2E Tests / test-e2e (pull_request) Successful in 2m13s

This commit is contained in:
Prathamesh Musale 2024-03-04 18:26:07 +05:30
parent 639b4e6333
commit 91677966f7
3 changed files with 12 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)