Skip to content

Commit

Permalink
Adjust coretime calculation in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidK committed Nov 11, 2024
1 parent e257413 commit 76a02f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion substrate/frame/broker/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,11 @@ mod benches {
_(origin as T::RuntimeOrigin, initial_price, extra_cores.try_into().unwrap());

assert!(SaleInfo::<T>::get().is_some());
let sale_start = RCBlockNumberProviderOf::<T::Coretime>::current_block_number() +
config.interlude_length;
assert_last_event::<T>(
Event::SaleInitialized {
sale_start: 2u32.into(),
sale_start,
leadin_length: 1u32.into(),
start_price: 1_000_000_000u32.into(),
end_price: 10_000_000u32.into(),
Expand Down

0 comments on commit 76a02f6

Please sign in to comment.