Skip to content

Commit

Permalink
fix v19 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Feb 5, 2024
1 parent 01fd17a commit 18426eb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/upgrades/v19/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@ func (s *UpgradeTestSuite) TestUpgrade() {
_, ok := updatedAcc.(*vestingtypes.PeriodicVestingAccount)
s.Require().False(ok)

s.Require().Equal(0, len(s.App.AppKeepers.BankKeeper.GetAllBalances(s.Ctx, c1mAddr)))
s.Require().Equal(0, len(s.App.AppKeepers.StakingKeeper.GetAllDelegatorDelegations(s.Ctx, c1mAddr)))
s.Require().Equal(0, len(s.App.AppKeepers.StakingKeeper.GetRedelegations(s.Ctx, c1mAddr, 65535)))

charterBal := s.App.AppKeepers.BankKeeper.GetAllBalances(s.Ctx, sdk.MustAccAddressFromBech32(v19.CharterCouncil))
fmt.Printf("Council Post Upgrade Balance: %s\n", charterBal)
s.Require().True(charterBal.AmountOf("ujuno").GTE(core1Prebal.AmountOf("ujuno")))
// TODO: removed since the test was altered for mainnet in v19.1.0
// s.Require().Equal(0, len(s.App.AppKeepers.BankKeeper.GetAllBalances(s.Ctx, c1mAddr)))
// s.Require().Equal(0, len(s.App.AppKeepers.StakingKeeper.GetAllDelegatorDelegations(s.Ctx, c1mAddr)))
// s.Require().Equal(0, len(s.App.AppKeepers.StakingKeeper.GetRedelegations(s.Ctx, c1mAddr, 65535)))

// charterBal := s.App.AppKeepers.BankKeeper.GetAllBalances(s.Ctx, sdk.MustAccAddressFromBech32(v19.CharterCouncil))
// fmt.Printf("Council Post Upgrade Balance: %s\n", charterBal)
// s.Require().True(charterBal.AmountOf("ujuno").GTE(core1Prebal.AmountOf("ujuno")))
}

func preUpgradeChecks(s *UpgradeTestSuite) {
Expand Down

0 comments on commit 18426eb

Please sign in to comment.