Browse Source

Fix voting power check.

pull/8127/head
M. J. Fromberger 3 years ago
parent
commit
a597b6101b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      internal/consensus/reactor_test.go

+ 3
- 2
internal/consensus/reactor_test.go View File

@ -833,11 +833,12 @@ func TestReactorVotingPowerChange(t *testing.T) {
waitForAndValidateBlock(ctx, t, n, activeVals, blocksSubs, states)
waitForAndValidateBlock(ctx, t, n, activeVals, blocksSubs, states)
powerNow := states[0].GetRoundState().LastValidators.TotalVotingPower()
require.NotEqualf(
t, previousTotalVotingPower, states[0].GetRoundState().LastValidators.TotalVotingPower(),
t, previousTotalVotingPower, powerNow,
"expected voting power to change (before: %d, after: %d)",
previousTotalVotingPower,
states[0].GetRoundState().LastValidators.TotalVotingPower(),
powerNow,
)
}


Loading…
Cancel
Save