mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 01:21:01 +00:00
Prepare UI tests for rust 1.55 (#9637)
* Prepare UI tests for rust 1.54 * Delete wrong_page.stderr * CI: run with a staging CI image * Revert "CI: run with a staging CI image" This reverts commit 66f5b00d14b50fd9d8fbf773f7e884f380697591. * CI: debug, again * LOG_TARGET is only used in std * Remove unnecessary unsafe * Fixes * Use correct rustc locally * FMT * Compile with benchmarking * Review feedback * Some ui tests * I know... * Fix wasm tests Co-authored-by: Denis P <denis.pisarev@parity.io> Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
@@ -332,12 +332,7 @@ pub mod pallet {
|
||||
.unwrap(),
|
||||
);
|
||||
|
||||
// This is the minimum value of the multiplier. Make sure that if we collapse to this
|
||||
// value, we can recover with a reasonable amount of traffic. For this test we assert
|
||||
// that if we collapse to minimum, the trend will be positive with a weight value
|
||||
// which is 1% more than the target.
|
||||
let min_value = T::FeeMultiplierUpdate::min();
|
||||
let mut target = T::FeeMultiplierUpdate::target() *
|
||||
let target = T::FeeMultiplierUpdate::target() *
|
||||
T::BlockWeights::get().get(DispatchClass::Normal).max_total.expect(
|
||||
"Setting `max_total` for `Normal` dispatch class is not compatible with \
|
||||
`transaction-payment` pallet.",
|
||||
@@ -348,10 +343,17 @@ pub mod pallet {
|
||||
// this is most likely because in a test setup we set everything to ().
|
||||
return
|
||||
}
|
||||
target += addition;
|
||||
|
||||
#[cfg(any(feature = "std", test))]
|
||||
sp_io::TestExternalities::new_empty().execute_with(|| {
|
||||
// This is the minimum value of the multiplier. Make sure that if we collapse to
|
||||
// this value, we can recover with a reasonable amount of traffic. For this test we
|
||||
// assert that if we collapse to minimum, the trend will be positive with a weight
|
||||
// value which is 1% more than the target.
|
||||
let min_value = T::FeeMultiplierUpdate::min();
|
||||
|
||||
let target = target + addition;
|
||||
|
||||
<frame_system::Pallet<T>>::set_block_consumed_resources(target, 0);
|
||||
let next = T::FeeMultiplierUpdate::convert(min_value);
|
||||
assert!(
|
||||
|
||||
Reference in New Issue
Block a user