Skip to content

Commit

Permalink
test: test unjail ops only when standalone staking is not available (c…
Browse files Browse the repository at this point in the history
…osmos#2434)

tests: test unjail ops only when standalone staking is not available
  • Loading branch information
MSalopek authored Dec 13, 2024
1 parent c6372ca commit b7a14d8
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 b7a14d8

Please sign in to comment.