Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Prev Previous commit
Next Next commit
migrate staking too
  • Loading branch information
shawntabrizi committed Sep 28, 2021
commit a42edd1ed20ff18d532549b8b75a070de4dd0a5e
15 changes: 7 additions & 8 deletions frame/staking/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,13 @@ benchmarks! {
verify {
assert!(!T::SortedListProvider::contains(&stash));
}

impl_benchmark_test_suite!(
Staking,
crate::mock::ExtBuilder::default().has_stakers(true),
crate::mock::Test,
exec_name = build_and_execute
);
}

#[cfg(test)]
Expand Down Expand Up @@ -1001,11 +1008,3 @@ mod tests {
});
}
}

// TODO: individual tests
impl_benchmark_test_suite!(
Staking,
crate::mock::ExtBuilder::default().has_stakers(true),
crate::mock::Test,
exec_name = build_and_execute
);
1 change: 1 addition & 0 deletions frame/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
//! validators is stored in the Session pallet's `Validators` at the end of each era.

#![cfg_attr(not(feature = "std"), no_std)]
#![recursion_limit = "256"]

#[cfg(feature = "runtime-benchmarks")]
pub mod benchmarking;
Expand Down