add DisabledValidatorsThreshold to mock config

This commit is contained in:
Alexander Popiak
2021-10-13 17:05:20 +02:00
parent 5cc3c13a47
commit 9a28018863
+3 -1
View File
@@ -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<Test>;
@@ -167,6 +167,7 @@ impl pallet_session::SessionHandler<u64> 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 = ();
}