Fix benchmarking macro for pallet with instance and where clause (#9485)

* fix benchmarking instance with where clause

* fmt

* add tests

* remove unused import

* fix tests

* doc
This commit is contained in:
Guillaume Thiolliere authored and GitHub committed 2021-08-04 08:45:56 +00:00
1 parent 6bd726bc6b
commit 8f388559a1
5 files changed
+287 -96

No files matched your search

+5 -7
View File
@@ -69,14 +69,12 @@ benchmarks! {
mod tests {
use super::*;
use crate::mock::*;
use frame_support::assert_ok;
#[test]
fn test_benchmarks() {
new_test_ext(3).execute_with(|| {
assert_ok!(test_benchmark_check_equivocation_proof::<Test>());
})
}
frame_benchmarking::impl_benchmark_test_suite!(
Pallet,
crate::mock::new_test_ext(3),
crate::mock::Test,
);
#[test]
fn test_generate_equivocation_report_blob() {