Skip to content

Commit

Permalink
fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
RustNinja committed Dec 7, 2023
1 parent f572af5 commit 5794d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/parachain/frame/liquid-staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,8 @@ fn test_on_initialize_work() {
LiquidStaking::on_finalize(System::block_number());
System::set_block_number(System::block_number() + 1);
LiquidStaking::on_initialize(System::block_number());
assert_eq!(EraStartBlock::<Test>::get(), total_era_blocknumbers);
let current_era: u64 = CurrentEra::<Test>::get() as u64;
assert_eq!(EraStartBlock::<Test>::get(), total_era_blocknumbers * current_era);
// ValidationDataProvider return relay_parent_number = 100
// total_era_blocknumbers = 10 so the current era is 10
assert_eq!(CurrentEra::<Test>::get(), 10);
Expand Down

0 comments on commit 5794d43

Please sign in to comment.