diff --git a/ibc-testkit/tests/core/ics04_channel/timeout.rs b/ibc-testkit/tests/core/ics04_channel/timeout.rs index 29675bb2e9..ceb2531da9 100644 --- a/ibc-testkit/tests/core/ics04_channel/timeout.rs +++ b/ibc-testkit/tests/core/ics04_channel/timeout.rs @@ -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}; @@ -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() @@ -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,