Skip to content

Commit b7a14d8

Browse files
authored
test: test unjail ops only when standalone staking is not available (#2434)
tests: test unjail ops only when standalone staking is not available
1 parent c6372ca commit b7a14d8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/integration/unbonding.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ func (s *CCVTestSuite) TestUndelegationCompletion() {
5050
func (s *CCVTestSuite) TestConsumerUnjailNoOp() {
5151
consumerKeeper := s.consumerApp.GetConsumerKeeper()
5252

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

0 commit comments

Comments
 (0)