From b418dae33274d776801629a39eb121c1947ed2e0 Mon Sep 17 00:00:00 2001 From: MSalopek Date: Fri, 13 Dec 2024 10:20:07 +0100 Subject: [PATCH] tests: test unjail ops only when standalone staking is not available --- tests/integration/unbonding.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/integration/unbonding.go b/tests/integration/unbonding.go index 7727240eaa..6232a68d47 100644 --- a/tests/integration/unbonding.go +++ b/tests/integration/unbonding.go @@ -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) + } }