From 7499677b7c4348f096ee44c959f9d21f120996d7 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Wed, 17 Jan 2024 11:04:02 +0100 Subject: [PATCH] fix: host chan open try test (#5632) --- .../27-interchain-accounts/host/keeper/handshake_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go b/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go index 76984907431..60b9e50a38d 100644 --- a/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go +++ b/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go @@ -98,10 +98,6 @@ func (suite *KeeperTestSuite) TestOnChanOpenTry() { { "success - previous metadata is different", func() { - // create a new channel and set it in state - ch := channeltypes.NewChannel(channeltypes.CLOSED, channeltypes.ORDERED, channeltypes.NewCounterparty(path.EndpointA.ChannelConfig.PortID, path.EndpointA.ChannelID), []string{path.EndpointA.ConnectionID}, TestVersion) - suite.chainB.GetSimApp().GetIBCKeeper().ChannelKeeper.SetChannel(suite.chainB.GetContext(), path.EndpointB.ChannelConfig.PortID, path.EndpointB.ChannelID, ch) - // set the active channelID in state suite.chainB.GetSimApp().ICAHostKeeper.SetActiveChannelID(suite.chainB.GetContext(), path.EndpointB.ConnectionID, path.EndpointA.ChannelConfig.PortID, path.EndpointB.ChannelID) @@ -112,6 +108,7 @@ func (suite *KeeperTestSuite) TestOnChanOpenTry() { versionBytes, err := icatypes.ModuleCdc.MarshalJSON(&metadata) suite.Require().NoError(err) + channel.State = channeltypes.CLOSED channel.Version = string(versionBytes) path.EndpointB.SetChannel(*channel)