Skip to content

Commit

Permalink
frame/benchmarks: Adjust more benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv committed Feb 3, 2023
1 parent ae85bbe commit d37aa22
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frame/nomination-pools/benchmarking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ frame_support::construct_runtime!(
}
);

impl Runtime {
fn runtime_metadata() -> Vec<frame_support::metadata::v15::TraitMetadata> {
Default::default()
}
}

pub fn new_test_ext() -> sp_io::TestExternalities {
let mut storage = frame_system::GenesisConfig::default().build_storage::<Runtime>().unwrap();
let _ = pallet_nomination_pools::GenesisConfig::<Runtime> {
Expand Down
6 changes: 6 additions & 0 deletions frame/offences/benchmarking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ frame_support::construct_runtime!(
}
);

impl Test {
fn runtime_metadata() -> Vec<frame_support::metadata::v15::TraitMetadata> {
Default::default()
}
}

pub fn new_test_ext() -> sp_io::TestExternalities {
let t = frame_system::GenesisConfig::default().build_storage::<Test>().unwrap();
sp_io::TestExternalities::new(t)
Expand Down
6 changes: 6 additions & 0 deletions frame/session/benchmarking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ frame_support::construct_runtime!(
}
);

impl Test {
fn runtime_metadata() -> Vec<frame_support::metadata::v15::TraitMetadata> {
Default::default()
}
}

impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type BlockWeights = ();
Expand Down

0 comments on commit d37aa22

Please sign in to comment.