Closed sainoe closed 3 months ago
The recent changes introduce a new test function TestTooManyLastValidators
to address a bug related to validators re-entering the active set. The changes involve modifications to test files and the addition of methods to the TestStakingKeeper
interface and its mock implementation. This ensures that the required parameters for staking logic can be tested correctly.
File Path | Change Summary |
---|---|
tests/integration/unbonding.go |
Added imports for sdk and stakingtypes , and the TestTooManyLastValidators test function. |
testutil/integration/debug_test.go |
Added the TestTooManyLastValidators(t *testing.T) function to call the test by name. |
testutil/integration/interfaces.go |
Added import for abci and methods GetParams , SetParams , and ApplyAndReturnValidatorSetUpdates to TestStakingKeeper . |
testutil/keeper/mocks.go |
Added mock implementations for GetParams and SetParams in MockStakingKeeper . |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
…axValidators bug (#1945)
Add test reproducing the LastValidators exceeding MaxValidators
formatting
Update tests/integration/unbonding.go
Update tests/integration/unbonding.go
document
Please go to the
Preview
tab and select the appropriate sub-template:fix
,feat
, andrefactor
.Summary by CodeRabbit