Skip to content

Commit

Permalink
packet without timeout should fail
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed May 2, 2024
1 parent 2af3ccf commit f2c1a42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ibc-testkit/tests/core/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ fn routing_module_and_keepers() {

let msg_transfer_no_timeout_or_timestamp = MsgTransferConfig::builder()
.packet_data(packet_data.clone())
// Timestamp::from_nanoseconds(0) and Timestamp::none() are equivalent
.timeout_timestamp_on_b(Timestamp::from_nanoseconds(0).unwrap())
.build();

Expand Down Expand Up @@ -348,13 +349,13 @@ fn routing_module_and_keepers() {
Test {
name: "Transfer message no timeout".to_string(),
msg: msg_transfer_no_timeout.into(),
want_pass: true,
want_pass: false,
state_check: None,
},
Test {
name: "Transfer message no timeout nor timestamp".to_string(),
msg: msg_transfer_no_timeout_or_timestamp.into(),
want_pass: true,
want_pass: false,
state_check: None,
},
//ICS04-close channel
Expand Down

0 comments on commit f2c1a42

Please sign in to comment.