Skip to content

Commit

Permalink
better test failing output
Browse files Browse the repository at this point in the history
  • Loading branch information
relyt29 committed May 22, 2024
1 parent f2d0a10 commit ecc9807
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion x/emissions/module/rewards/rewards_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,12 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionShouldRewardTopicsWithFulfi
s.Require().NoError(err)

// Topic 1 should have less revenue after rewards distribution -> rewards distributed
s.Require().True(beforeRewardsTopic1FeeRevenue.Revenue.GT(afterRewardsTopic1FeeRevenue.Revenue))
s.Require().True(
beforeRewardsTopic1FeeRevenue.Revenue.GT(afterRewardsTopic1FeeRevenue.Revenue),
"Topic 1 should have more fee revenue: %s > %s",
beforeRewardsTopic1FeeRevenue.Revenue.String(),
afterRewardsTopic1FeeRevenue.Revenue.String(),
)
// Topic 2 should have the same revenue after rewards distribution -> no rewards distributed
s.Require().Equal(beforeRewardsTopic2FeeRevenue.Revenue, afterRewardsTopic2FeeRevenue.Revenue)
}
Expand Down

0 comments on commit ecc9807

Please sign in to comment.