Skip to content

Commit

Permalink
fix(staking): update the staking sim tests (#16180)
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-develope authored May 16, 2023
1 parent 9cdbbc7 commit a4d768d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/staking/simulation/operations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (s *SimTestSuite) TestSimulateMsgCancelUnbondingDelegation() {
s.setupValidatorRewards(ctx, validator0.GetOperator())

// unbonding delegation
udb := types.NewUnbondingDelegation(delegator.Address, validator0.GetOperator(), s.app.LastBlockHeight(), blockTime.Add(2*time.Minute), delTokens, 0)
udb := types.NewUnbondingDelegation(delegator.Address, validator0.GetOperator(), s.app.LastBlockHeight()+1, blockTime.Add(2*time.Minute), delTokens, 0)
s.stakingKeeper.SetUnbondingDelegation(ctx, udb)
s.setupValidatorRewards(ctx, validator0.GetOperator())

Expand Down

0 comments on commit a4d768d

Please sign in to comment.