mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
Fix XCM benchmark template (#7320)
* Fix XCM benchmark template Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Keep function pub Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::generic * ".git/.scripts/commands/bench/bench.sh" xcm westend pallet_xcm_benchmarks::generic * ".git/.scripts/commands/bench/bench.sh" xcm rococo pallet_xcm_benchmarks::generic * Fix test * Actually fix test --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <>
This commit is contained in:
committed by
GitHub
parent
2651dce9fd
commit
2d73e39d2f
@@ -446,8 +446,9 @@ fn karura_liquid_staking_xcm_has_sane_weight_upper_limt() {
|
||||
let weight = <XcmConfig as xcm_executor::Config>::Weigher::weight(&mut xcm)
|
||||
.expect("weighing XCM failed");
|
||||
|
||||
// Test that the weigher gives us a sensible weight
|
||||
assert_eq!(weight, Weight::from_parts(20_313_281_000, 65536));
|
||||
// Test that the weigher gives us a sensible weight but don't exactly hard-code it, otherwise it
|
||||
// will be out of date after each re-run.
|
||||
assert!(weight.all_lte(Weight::from_parts(30_313_281_000, 65536)));
|
||||
|
||||
let Some(Transact { require_weight_at_most, call, .. }) =
|
||||
xcm.inner_mut().into_iter().find(|inst| matches!(inst, Transact { .. })) else {
|
||||
|
||||
Reference in New Issue
Block a user