Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
benchmark fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dharjeezy committed Jul 14, 2023
1 parent d84f7f2 commit 8495df6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pallet-ismp/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ pub mod benchmarks {
#[benchmark]
fn handle_request_message() {
let host = Host::<T>::default();
host.store_challenge_period(MOCK_CONSENSUS_STATE_ID, 60 * 60).unwrap();
let height = setup_mock_client::<_, T>(&host);
let post = Post {
source: StateMachine::Ethereum(Ethereum::ExecutionLayer),
Expand All @@ -122,6 +123,7 @@ pub mod benchmarks {
#[benchmark]
fn handle_response_message() {
let host = Host::<T>::default();
host.store_challenge_period(MOCK_CONSENSUS_STATE_ID, 60 * 60).unwrap();
let height = setup_mock_client::<_, T>(&host);
let post = Post {
source: <T as Config>::StateMachine::get(),
Expand Down Expand Up @@ -158,6 +160,7 @@ pub mod benchmarks {
#[benchmark]
fn handle_timeout_message() {
let host = Host::<T>::default();
host.store_challenge_period(MOCK_CONSENSUS_STATE_ID, 60 * 60).unwrap();
let height = setup_mock_client::<_, T>(&host);
let post = Post {
source: <T as Config>::StateMachine::get(),
Expand Down

0 comments on commit 8495df6

Please sign in to comment.