Allow more time for test network to produce blocks
This commit is contained in:
parent
639b4e6333
commit
91677966f7
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user