From a597b6101b0f0d1344838aa2d38d0dcf26bfe59b Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Tue, 15 Mar 2022 11:28:00 -0700 Subject: [PATCH] Fix voting power check. --- internal/consensus/reactor_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/consensus/reactor_test.go b/internal/consensus/reactor_test.go index c6d37a915..a0f74557c 100644 --- a/internal/consensus/reactor_test.go +++ b/internal/consensus/reactor_test.go @@ -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, ) }