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

Commit

Permalink
fix challenge period test
Browse files Browse the repository at this point in the history
  • Loading branch information
dharjeezy committed Jul 14, 2023
1 parent 7d29de3 commit 2dc0f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallet-ismp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ where
Ok(MessageResult::ConsensusMessage(res)) => {
// check if this is a trusted state machine
let is_trusted_state_machine = host
.challenge_period(res.consensus_client_id.clone()) ==
.challenge_period(res.consensus_state_id.clone()) ==
Some(Duration::from_secs(0));

if is_trusted_state_machine {
Expand Down
2 changes: 1 addition & 1 deletion pallet-ismp/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ fn should_handle_get_request_responses_correctly() {
let mut ext = new_test_ext();
ext.execute_with(|| {
let host = Host::<Test>::default();
host.store_challenge_period(MOCK_CONSENSUS_STATE_ID, 1_000_000).unwrap();
setup_mock_client::<_, Test>(&host);
host.store_challenge_period(MOCK_CONSENSUS_STATE_ID, 60 * 60 ).unwrap();
let requests = (0..2)
.into_iter()
.map(|i| {
Expand Down

0 comments on commit 2dc0f55

Please sign in to comment.