Skip to content

Commit

Permalink
chore: addressing formatting issues from PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton committed Aug 25, 2022
1 parent 7db37aa commit d4c5b04
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func (im IBCMiddleware) OnChanOpenAck(
if im.app != nil {
return im.app.OnChanOpenAck(ctx, portID, channelID, counterpartyChannelID, counterpartyVersion)
}

return nil
}

Expand Down Expand Up @@ -164,6 +165,7 @@ func (im IBCMiddleware) OnAcknowledgementPacket(
if im.app != nil {
return im.app.OnAcknowledgementPacket(ctx, packet, acknowledgement, relayer)
}

return nil
}

Expand All @@ -184,6 +186,7 @@ func (im IBCMiddleware) OnTimeoutPacket(
if im.app != nil {
return im.app.OnTimeoutPacket(ctx, packet, relayer)
}

return nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ func SetupICAPath(path *ibctesting.Path, owner string) error {
}

func (suite *InterchainAccountsTestSuite) TestOnChanOpenInit() {
var channel *channeltypes.Channel
var isNilApp bool
var (
channel *channeltypes.Channel
isNilApp bool
)

testCases := []struct {
name string
Expand Down Expand Up @@ -176,7 +178,6 @@ func (suite *InterchainAccountsTestSuite) TestOnChanOpenInit() {

suite.Run(tc.name, func() {
suite.SetupTest() // reset

isNilApp = false

path := NewICAPath(suite.chainA, suite.chainB)
Expand Down Expand Up @@ -284,8 +285,10 @@ func (suite *InterchainAccountsTestSuite) TestChanOpenTry() {
}

func (suite *InterchainAccountsTestSuite) TestOnChanOpenAck() {
var path *ibctesting.Path
var isNilApp bool
var (
path *ibctesting.Path
isNilApp bool
)

testCases := []struct {
name string
Expand Down Expand Up @@ -326,6 +329,7 @@ func (suite *InterchainAccountsTestSuite) TestOnChanOpenAck() {

suite.Run(tc.name, func() {
suite.SetupTest() // reset
isNilApp = false

path = NewICAPath(suite.chainA, suite.chainB)
suite.coordinator.SetupConnections(path)
Expand Down Expand Up @@ -520,8 +524,10 @@ func (suite *InterchainAccountsTestSuite) TestOnRecvPacket() {
}

func (suite *InterchainAccountsTestSuite) TestOnAcknowledgementPacket() {
var path *ibctesting.Path
var isNilApp bool
var (
path *ibctesting.Path
isNilApp bool
)

testCases := []struct {
msg string
Expand Down Expand Up @@ -600,8 +606,10 @@ func (suite *InterchainAccountsTestSuite) TestOnAcknowledgementPacket() {
}

func (suite *InterchainAccountsTestSuite) TestOnTimeoutPacket() {
var path *ibctesting.Path
var isNilApp bool
var (
path *ibctesting.Path
isNilApp bool
)

testCases := []struct {
msg string
Expand Down Expand Up @@ -637,6 +645,7 @@ func (suite *InterchainAccountsTestSuite) TestOnTimeoutPacket() {
for _, tc := range testCases {
suite.Run(tc.msg, func() {
suite.SetupTest() // reset
isNilApp = false

path = NewICAPath(suite.chainA, suite.chainB)
suite.coordinator.SetupConnections(path)
Expand Down

0 comments on commit d4c5b04

Please sign in to comment.