Compare commits

...

2 Commits

Author SHA1 Message Date
William Banfield
da9d6f2cf6 fewer concurrent dials 2022-07-05 20:36:42 -04:00
William Banfield
95b2ee76a8 fix validator set change test 2022-07-05 20:18:14 -04:00
2 changed files with 6 additions and 2 deletions

View File

@@ -637,7 +637,7 @@ func TestReactorValidatorSetChanges(t *testing.T) {
)
t.Cleanup(cleanup)
rts := setup(t, nPeers, states, 100) // buffer must be large enough to not deadlock
rts := setup(t, nPeers, states, 1000) // buffer must be large enough to not deadlock
for _, reactor := range rts.reactors {
state := reactor.state.GetState()

View File

@@ -253,7 +253,11 @@ func (n *Network) MakeNode(t *testing.T, opts NodeOptions) *Node {
privKey,
peerManager,
[]p2p.Transport{transport},
p2p.RouterOptions{},
p2p.RouterOptions{
NumConcurrentDials: func() int {
return 2
},
},
)
require.NoError(t, err)
require.NoError(t, router.Start())