Skip to content

Commit

Permalink
Avoiding maintain different run_to_block
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Jan 11, 2025
1 parent b0f23c5 commit 464d53e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion substrate/frame/staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,9 @@ impl ExtBuilder {

if self.initialize_first_session {
ext.execute_with(|| {
System::run_to_block::<AllPalletsWithSystem>(1);
run_to_block(1);

// Force reset the timestamp to the initial timestamp for easy testing.
Timestamp::set_timestamp(INIT_TIMESTAMP);
});
}
Expand Down

0 comments on commit 464d53e

Please sign in to comment.