Skip to content

Commit

Permalink
things must be validator
Browse files Browse the repository at this point in the history
  • Loading branch information
tychoish committed Oct 1, 2021
1 parent 36c5669 commit 795f25d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions testutil/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (

"github.com/rs/zerolog"
"github.com/spf13/cobra"
"github.com/tendermint/tendermint/config"
tmrand "github.com/tendermint/tendermint/libs/rand"
"github.com/tendermint/tendermint/libs/service"
tmclient "github.com/tendermint/tendermint/rpc/client"
Expand Down Expand Up @@ -233,6 +234,7 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) {
ctx := server.NewDefaultContext()
tmCfg := ctx.Config
tmCfg.Consensus.TimeoutCommit = cfg.TimeoutCommit
tmCfg.Mode = config.ModeValidator

// Only allow the first validator to expose an RPC, API and gRPC
// server/client due to Tendermint in-process constraints.
Expand Down
4 changes: 2 additions & 2 deletions testutil/network/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ func (s *IntegrationTestSuite) SetupSuite() {
s.network, err = network.New(s.T(), s.T().TempDir(), network.DefaultConfig())
s.Require().NoError(err)

_, err = s.network.WaitForHeight(1)
s.Require().NoError(err)
h, err := s.network.WaitForHeight(1)
s.Require().NoError(err, "stalled at height %d", h)
}

func (s *IntegrationTestSuite) TearDownSuite() {
Expand Down

0 comments on commit 795f25d

Please sign in to comment.