Skip to content

Commit

Permalink
chore: add testing assets
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed May 21, 2024
1 parent c7d7ec8 commit b6c86fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/staking/keeper/tokenize_share_record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ func (suite *KeeperTestSuite) TestComputeRemainingRedelegatedSharesAfterUnbondin
reds,
validatorDstAddress,
)
suite.Require().Error(err)

// expect an error when the passed validator address doesn't match the one in the redelegations
_, err = stakingKeeper.ComputeRemainingRedelegatedSharesAfterUnbondings(
Expand All @@ -482,6 +483,7 @@ func (suite *KeeperTestSuite) TestComputeRemainingRedelegatedSharesAfterUnbondin
reds,
sdk.ValAddress([]byte("wrongValDstAddr")),
)
suite.Require().Error(err)

// expect no error when no redelegations is passed
res, err := stakingKeeper.ComputeRemainingRedelegatedSharesAfterUnbondings(
Expand Down

0 comments on commit b6c86fc

Please sign in to comment.