Skip to content

Commit

Permalink
add a case for testing chanUpgradeCancel to the test-channel-upgrade …
Browse files Browse the repository at this point in the history
…script

Signed-off-by: Masanori Yoshida <[email protected]>
  • Loading branch information
siburu committed Jul 8, 2024
1 parent af452bf commit 6b07d01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/cases/tm2tm/scripts/test-channel-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ $RLY tx channel-upgrade init ibc01 ibc0 --ordering ORDER_UNORDERED --connection-
$RLY tx channel-upgrade init ibc01 ibc0 --ordering ORDER_UNORDERED --connection-hops $srcOrigConnectionId --version ics20-1
$RLY tx channel-upgrade init ibc01 ibc1 --ordering ORDER_UNORDERED --connection-hops $dstOrigConnectionId --version ics20-1
$RLY tx channel-upgrade execute ibc01

# test channel upgrade cancel
$RLY tx channel-upgrade init ibc01 ibc0 --ordering ORDER_UNORDERED --connection-hops $srcConnectionId --version ics20-1
$RLY tx channel-upgrade init ibc01 ibc1 --ordering ORDER_UNORDERED --connection-hops $dstConnectionId --version ics20-1
$RLY tx channel-upgrade cancel ibc01 ibc0 # create situation where ibc0.error_receipt.sequence >= ibc1.channel.upgrade_sequence
$RLY tx channel-upgrade execute ibc01 # the channel upgrade of ibc1 should be cancelled

0 comments on commit 6b07d01

Please sign in to comment.