From 30b9c38a0a490973547ab6f73a2b0fd9cccc0fc0 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Tue, 16 Jan 2024 09:18:13 +0100 Subject: [PATCH] check channel b also is closed --- e2e/tests/interchain_accounts/upgrades_test.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/e2e/tests/interchain_accounts/upgrades_test.go b/e2e/tests/interchain_accounts/upgrades_test.go index 7ef8b2bc6d7..6385dd5232e 100644 --- a/e2e/tests/interchain_accounts/upgrades_test.go +++ b/e2e/tests/interchain_accounts/upgrades_test.go @@ -132,7 +132,7 @@ func (s *InterchainAccountsChannelUpgradesTestSuite) TestChannelUpgrade_ICAChann s.StopRelayer(ctx, relayer) }) - t.Run("submit tx message with bank transfer message times out", func(t *testing.T) { + t.Run("submit tx message with bank transfer message that times out", func(t *testing.T) { t.Run("fund interchain account wallet", func(t *testing.T) { // fund the host account account so it has some $$ to send err := chainB.SendFunds(ctx, interchaintest.FaucetAccountKeyName, ibc.WalletAmount{ @@ -182,12 +182,19 @@ func (s *InterchainAccountsChannelUpgradesTestSuite) TestChannelUpgrade_ICAChann s.StartRelayer(relayer) }) - t.Run("verify channel is closed due to timeout on ordered channel", func(t *testing.T) { + t.Run("verify channel A is closed due to timeout on ordered channel", func(t *testing.T) { channel, err := s.QueryChannel(ctx, chainA, controllerPortID, channelID) s.Require().NoError(err) s.Require().Equal(channeltypes.CLOSED, channel.State, "the channel was not in an expected state") }) + + t.Run("verify channel B is closed due to timeout on ordered channel", func(t *testing.T) { + channel, err := s.QueryChannel(ctx, chainB, hostPortID, channelID) + s.Require().NoError(err) + + s.Require().Equal(channeltypes.CLOSED, channel.State, "the channel was not in an expected state") + }) } // createUpgradeFields created the upgrade fields for channel