From 69cdfeab61f932c87e9e982333c524ba593754ef Mon Sep 17 00:00:00 2001 From: Gregory Sobol Date: Mon, 5 Feb 2024 23:00:18 +0300 Subject: [PATCH] add panic benchmarks if case of reinstrumentation failure --- pallets/gear/src/benchmarking/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/gear/src/benchmarking/mod.rs b/pallets/gear/src/benchmarking/mod.rs index dceb8f523a2..389985f6182 100644 --- a/pallets/gear/src/benchmarking/mod.rs +++ b/pallets/gear/src/benchmarking/mod.rs @@ -593,7 +593,7 @@ benchmarks! { let schedule = T::Schedule::get(); }: { - let _ = Gear::::reinstrument_code(code_id, &schedule); + Gear::::reinstrument_code(code_id, &schedule).expect("Re-instrumentation failed"); } // Alloc there 1 page because `alloc` execution time is non-linear along with other amounts of pages.