Skip to content

Commit

Permalink
add check closed
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Oct 17, 2023
1 parent e0272c6 commit db3369c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x/interchainstaking/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"

connectiontypes "github.com/cosmos/ibc-go/v5/modules/core/03-connection/types"
channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types"

"github.com/quicksilver-zone/quicksilver/utils/addressutils"
icskeeper "github.com/quicksilver-zone/quicksilver/x/interchainstaking/keeper"
Expand Down Expand Up @@ -575,6 +576,11 @@ func (suite *KeeperTestSuite) TestGovCloseChannel() {
return
}
suite.NoError(err)

// check state channel is CLOSED
channel, found := suite.GetQuicksilverApp(suite.chainA).IBCKeeper.ChannelKeeper.GetChannel(ctx, msg.PortId, msg.ChannelId)
suite.True(found)
suite.True(channel.State == channeltypes.CLOSED)
})
}
}

0 comments on commit db3369c

Please sign in to comment.