Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
FMT
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Sep 10, 2022
1 parent abbde99 commit 590d2a6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frame/support/test/tests/pallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,11 +1171,7 @@ fn migrate_from_pallet_version_to_storage_version() {
AllPalletsWithSystem,
>(&db_weight);

let pallet_num = if cfg!(feature = "frame-feature-testing") {
5
} else {
4
};
let pallet_num = if cfg!(feature = "frame-feature-testing") { 5 } else { 4 };

// `pallet_num` pallets, 2 writes and every write costs 5 weight.
assert_eq!(Weight::from_ref_time(pallet_num * 2 * 5), weight);
Expand Down

0 comments on commit 590d2a6

Please sign in to comment.