Skip to content

Commit

Permalink
Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Nov 22, 2023
1 parent a5ed99e commit 67b7153
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions internal/consensus/reactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,8 @@ func TestReactorVotingPowerChange(t *testing.T) {
func() bool {
return previousTotalVotingPower != states[0].GetRoundState().LastValidators.TotalVotingPower()
},
5*time.Second,
300*time.Millisecond,
30*time.Second,
100*time.Millisecond,
"expected voting power to change (before: %d, after: %d)",
previousTotalVotingPower,
states[0].GetRoundState().LastValidators.TotalVotingPower(),
Expand All @@ -875,8 +875,8 @@ func TestReactorVotingPowerChange(t *testing.T) {
func() bool {
return previousTotalVotingPower != states[0].GetRoundState().LastValidators.TotalVotingPower()
},
5*time.Second,
300*time.Millisecond,
30*time.Second,
100*time.Millisecond,
"expected voting power to change (before: %d, after: %d)",
previousTotalVotingPower,
states[0].GetRoundState().LastValidators.TotalVotingPower(),
Expand All @@ -895,8 +895,8 @@ func TestReactorVotingPowerChange(t *testing.T) {
func() bool {
return previousTotalVotingPower != states[0].GetRoundState().LastValidators.TotalVotingPower()
},
5*time.Second,
300*time.Millisecond,
30*time.Second,
100*time.Millisecond,
"expected voting power to change (before: %d, after: %d)",
previousTotalVotingPower,
states[0].GetRoundState().LastValidators.TotalVotingPower(),
Expand Down
2 changes: 1 addition & 1 deletion internal/eventbus/event_bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/tendermint/tendermint/types"
)

var DefaultBufferCapacity = 1000
var DefaultBufferCapacity = 100

// Subscription is a proxy interface for a pubsub Subscription.
type Subscription interface {
Expand Down

0 comments on commit 67b7153

Please sign in to comment.