Skip to content

Commit

Permalink
fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega committed May 6, 2024
1 parent 34e6659 commit 354fe01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/tests/interchain_accounts/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,18 +249,18 @@ func (s *InterchainAccountsParamsTestSuite) TestHostEnabledParam() {
s.Require().Equal(testvalues.StartingTokenAmount, hostAccountBalance.Int64())
})

testvalues.TransactionEventQueryFeatureReleases.IsSupported(chainBVersion) {
if testvalues.TransactionEventQueryFeatureReleases.IsSupported(chainBVersion) {
t.Run("verify acknowledgement error in ack transaction", func(t *testing.T) {
txSearchRes, err := s.QueryTxsByEvents(ctx, chainB, 1, 1, "message.action='/ibc.core.channel.v1.MsgRecvPacket'", "")
s.Require().NoError(err)
s.Require().Len(txSearchRes.Txs, 1)

errorMessage, isFound := s.ExtractValueFromEvents(
txSearchRes.Txs[0].Events,
coretypes.ErrorAttributeKeyPrefix+icatypes.EventTypePacket,
coretypes.ErrorAttributeKeyPrefix+icatypes.AttributeKeyAckError,
)

s.Require().True(isFound)
s.Require().Equal(errorMessage, hosttypes.ErrHostSubModuleDisabled.Error())
})
Expand Down

0 comments on commit 354fe01

Please sign in to comment.