Skip to content

Commit cab478b

Browse files
fix: update validator manager mock and remove staging md files
- Add missing SessionPeriod and SessionOffset to mock Config - Remove staging-chainspec.md and staging-raw.md files - Fix CI compilation error for validator manager tests
1 parent e2b9bfe commit cab478b

3 files changed

Lines changed: 2 additions & 138 deletions

File tree

chainspecs/staging/staging-chainspec.md

Lines changed: 0 additions & 72 deletions
This file was deleted.

chainspecs/staging/staging-raw.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

pallets/validator-manager/src/mock.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ impl pallet_validator_manager::Config for Test {
136136
type RuntimeEvent = RuntimeEvent;
137137
type PrivilegedOrigin = frame_system::EnsureRoot<AccountId>;
138138
type MinAuthorities = MinAuthorities;
139+
type SessionPeriod = ConstU32<20>; // 20 blocks per session for testing
140+
type SessionOffset = ConstU32<0>; // No offset for testing
139141
type ValidatorOf = crate::ValidatorOf<Test>;
140142
type WeightInfo = ();
141143
}

0 commit comments

Comments
 (0)