diff --git a/substrate/frame/staking/src/mock.rs b/substrate/frame/staking/src/mock.rs index a80c6598ede2..769b84826b41 100644 --- a/substrate/frame/staking/src/mock.rs +++ b/substrate/frame/staking/src/mock.rs @@ -545,7 +545,9 @@ impl ExtBuilder { if self.initialize_first_session { ext.execute_with(|| { - System::run_to_block::(1); + run_to_block(1); + + // Force reset the timestamp to the initial timestamp for easy testing. Timestamp::set_timestamp(INIT_TIMESTAMP); }); }