Skip to content

Commit

Permalink
tests: improve unjail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Dec 9, 2024
1 parent 928baa5 commit e5edc4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/democracy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit e5edc4b

Please sign in to comment.