diff --git a/pallets/vesting-mbm/src/mock.rs b/pallets/vesting-mbm/src/mock.rs index e245a971d8..f562c71e5b 100644 --- a/pallets/vesting-mbm/src/mock.rs +++ b/pallets/vesting-mbm/src/mock.rs @@ -60,7 +60,10 @@ parameter_types! { #[derive_impl(pallet_migrations::config_preludes::TestDefaultConfig)] impl pallet_migrations::Config for Runtime { + #[cfg(not(feature = "runtime-benchmarks"))] type Migrations = (crate::LazyMigration>,); + #[cfg(feature = "runtime-benchmarks")] + type Migrations = pallet_migrations::mock_helpers::MockedMigrations; type MigrationStatusHandler = (); type MaxServiceWeight = MaxServiceWeight; } diff --git a/pallets/vesting-mbm/src/tests.rs b/pallets/vesting-mbm/src/tests.rs index 008daf3cd3..052c18b69a 100644 --- a/pallets/vesting-mbm/src/tests.rs +++ b/pallets/vesting-mbm/src/tests.rs @@ -16,7 +16,7 @@ // You should have received a copy of the GNU General Public License // along with Astar. If not, see . -#![cfg(test)] +#![cfg(all(test, not(feature = "runtime-benchmarks")))] use crate::mock::{ new_test_ext, run_to_block, AllPalletsWithSystem, Balances, RuntimeOrigin, Vesting, ALICE, BOB,