diff --git a/pallets/collator-selection/src/mock.rs b/pallets/collator-selection/src/mock.rs index 600d4bc12c..830435b502 100644 --- a/pallets/collator-selection/src/mock.rs +++ b/pallets/collator-selection/src/mock.rs @@ -26,7 +26,7 @@ use sp_core::H256; use sp_runtime::{ testing::{Header, UintAuthorityId}, traits::{BlakeTwo256, IdentityLookup, OpaqueKeys}, - RuntimeAppPublic, + RuntimeAppPublic, Perbill, }; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; @@ -167,6 +167,7 @@ impl pallet_session::SessionHandler for TestSessionHandler { parameter_types! { pub const Offset: u64 = 0; pub const Period: u64 = 10; + pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); } impl pallet_session::Config for Test { @@ -179,6 +180,7 @@ impl pallet_session::Config for Test { type SessionManager = CollatorSelection; type SessionHandler = TestSessionHandler; type Keys = MockSessionKeys; + type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = (); }