From e5edc4bf177d6466b810df48efeb558da9b8611e Mon Sep 17 00:00:00 2001 From: MSalopek Date: Mon, 9 Dec 2024 18:55:57 +0100 Subject: [PATCH] tests: improve unjail tests --- tests/integration/democracy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/democracy.go b/tests/integration/democracy.go index 69619d2aa5..7e49734df7 100644 --- a/tests/integration/democracy.go +++ b/tests/integration/democracy.go @@ -243,10 +243,10 @@ func (s *ConsumerDemocracyTestSuite) TestDemocracyValidatorUnjail() { // setting up pre-conditions // validator[0] is expected to be jailed expectJailed := validators[0] - expectJailed.Jailed = true consAddr, err := expectJailed.GetConsAddr() s.Require().NoError(err) stakingKeeper.GetValidatorSet().Jail(s.consumerCtx(), consAddr) + s.consumerChain.NextBlock() validators, err = stakingKeeper.GetAllValidators(s.consumerCtx())