Skip to content

Commit

Permalink
tests: test unjail ops only when standalone staking is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Dec 13, 2024
1 parent c6372ca commit b418dae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/integration/unbonding.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ func (s *CCVTestSuite) TestUndelegationCompletion() {
func (s *CCVTestSuite) TestConsumerUnjailNoOp() {
consumerKeeper := s.consumerApp.GetConsumerKeeper()

// this is a no-op
err := consumerKeeper.Unjail(s.consumerCtx(), sdk.ConsAddress([]byte{0x01, 0x02, 0x03}))
s.Require().NoError(err)
if s.consumerApp.GetStakingKeeper() == nil {
// this is a no-op
err := consumerKeeper.Unjail(s.consumerCtx(), sdk.ConsAddress([]byte{0x01, 0x02, 0x03}))
s.Require().NoError(err)
}
}

0 comments on commit b418dae

Please sign in to comment.