Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Aug 29, 2024
1 parent a6ee8e6 commit 13c0d19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pallets/vesting-mbm/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Runtime, crate::weights::SubstrateWeight<Runtime>>,);
#[cfg(feature = "runtime-benchmarks")]
type Migrations = pallet_migrations::mock_helpers::MockedMigrations;
type MigrationStatusHandler = ();
type MaxServiceWeight = MaxServiceWeight;
}
Expand Down
2 changes: 1 addition & 1 deletion pallets/vesting-mbm/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with Astar. If not, see <http://www.gnu.org/licenses/>.

#![cfg(test)]
#![cfg(all(test, not(feature = "runtime-benchmarks")))]

use crate::mock::{
new_test_ext, run_to_block, AllPalletsWithSystem, Balances, RuntimeOrigin, Vesting, ALICE, BOB,
Expand Down

0 comments on commit 13c0d19

Please sign in to comment.