Skip to content

Commit

Permalink
Ensure the behavior does not change
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Mar 29, 2023
1 parent 7bc33fe commit 76a7ceb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/foundation/keeper/internal/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ func (s *KeeperTestSuite) TestBeginBlocker() {
internal.BeginBlocker(ctx, s.impl)

tax := sdk.NewDecFromInt(s.balance).MulTruncate(taxRatio).TruncateInt()
// ensure the behavior does not change
s.Require().Equal(sdk.NewInt(121932631), tax)

expectedAfter := s.balance.Add(tax)
after := s.impl.GetTreasury(ctx)
s.Require().Equal(1, len(after))
Expand Down

0 comments on commit 76a7ceb

Please sign in to comment.