From 99417cc182cb0152aef3c4f5dc659423d20b2fd9 Mon Sep 17 00:00:00 2001 From: ekez Date: Wed, 12 Apr 2023 13:56:42 -0700 Subject: [PATCH] Properly filter by channel state in interchaintest suite. --- tests/strangelove/suite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/strangelove/suite.go b/tests/strangelove/suite.go index e1bcbe8..f214d60 100644 --- a/tests/strangelove/suite.go +++ b/tests/strangelove/suite.go @@ -250,7 +250,7 @@ func (s *Suite) QueryChannelsInState(chain *SuiteChain, state string) []ibc.Chan } openChannels := []ibc.ChannelOutput{} for index := range channels { - if channels[index].State == "STATE_OPEN" { + if channels[index].State == state { openChannels = append(openChannels, channels[index]) } }