Fix Benchmark Regressions in Polkadot Parachain Auction System (#5139)

* integration tests use offset

* fix slots

* fix auctions

* add auctions benchmark

* fix crowdloan
This commit is contained in:
Shawn Tabrizi
2022-03-17 11:56:50 -04:00
committed by GitHub
parent 16fe04dc79
commit dd6fdf0f14
5 changed files with 52 additions and 15 deletions
+2 -2
View File
@@ -2014,7 +2014,7 @@ mod benchmarking {
let caller: T::AccountId = whitelisted_caller();
let contributor = account("contributor", 0, 0);
contribute_fund::<T>(&contributor, fund_index);
frame_system::Pallet::<T>::set_block_number(200u32.into());
frame_system::Pallet::<T>::set_block_number(T::BlockNumber::max_value());
}: _(RawOrigin::Signed(caller), contributor.clone(), fund_index)
verify {
assert_last_event::<T>(Event::<T>::Withdrew(contributor, fund_index, T::MinContribution::get()).into());
@@ -2034,7 +2034,7 @@ mod benchmarking {
}
let caller: T::AccountId = whitelisted_caller();
frame_system::Pallet::<T>::set_block_number(200u32.into());
frame_system::Pallet::<T>::set_block_number(T::BlockNumber::max_value());
}: _(RawOrigin::Signed(caller), fund_index)
verify {
assert_last_event::<T>(Event::<T>::AllRefunded(fund_index).into());