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 1de553c
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 @@ -45,13 +43,10 @@ fn fixture() -> Fixture {

let router = MockRouter::new_with_transfer();

// in case of timeout, timeout timestamp should be less than host's timestamp
let timeout_timestamp = ctx.latest_timestamp().nanoseconds() - 1;
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 1de553c

Please sign in to comment.