Skip to content

Commit

Permalink
add panic benchmarks if case of reinstrumentation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
grishasobol committed Feb 5, 2024
1 parent 495c98d commit 69cdfea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/gear/src/benchmarking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ benchmarks! {

let schedule = T::Schedule::get();
}: {
let _ = Gear::<T>::reinstrument_code(code_id, &schedule);
Gear::<T>::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.
Expand Down

0 comments on commit 69cdfea

Please sign in to comment.