From b7a14d8925379c614c4d97df74534fd9ea78ec26 Mon Sep 17 00:00:00 2001 From: MSalopek Date: Fri, 13 Dec 2024 10:52:27 +0100 Subject: [PATCH] test: test unjail ops only when standalone staking is not available (#2434) 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) + } }