Skip to content

Commit

Permalink
imp timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Feb 1, 2024
1 parent 16f6d60 commit 0de4fd5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions ibc-testkit/tests/core/ics04_channel/timeout.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::ops::Sub;

use ibc::core::channel::types::channel::{ChannelEnd, Counterparty, Order, State};
use ibc::core::channel::types::commitment::{compute_packet_commitment, PacketCommitment};
use ibc::core::channel::types::msgs::{MsgTimeout, PacketMsg};
Expand Down Expand Up @@ -34,6 +32,8 @@ struct Fixture {

#[fixture]
fn fixture() -> Fixture {
let timeout_timestamp = Timestamp::now().nanoseconds();

let client_height = Height::new(0, 2).unwrap();
let ctx = MockContext::default().with_client_config(
MockClientConfig::builder()
Expand All @@ -47,11 +47,6 @@ fn fixture() -> Fixture {

let msg_proof_height = 2;
let msg_timeout_height = 5;
let timeout_timestamp = ctx
.latest_timestamp()
.sub(core::time::Duration::from_secs(3))
.expect("no overflow")
.nanoseconds();

let msg = MsgTimeout::try_from(dummy_raw_msg_timeout(
msg_proof_height,
Expand Down

0 comments on commit 0de4fd5

Please sign in to comment.