Skip to content

Commit

Permalink
fix import cycle in middleware_test
Browse files Browse the repository at this point in the history
  • Loading branch information
vuong177 committed Feb 27, 2022
1 parent 9df6e81 commit ecfdb14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/core/middleware/middleware_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package middleware
package middleware_test

import (
"context"
Expand All @@ -13,6 +13,8 @@ import (
ibctesting "github.com/cosmos/ibc-go/v3/testing"
"github.com/cosmos/ibc-go/v3/testing/mock"
"github.com/stretchr/testify/suite"

ibcmiddleware "github.com/cosmos/ibc-go/v3/modules/core/middleware"
)

type MiddlewareTestSuite struct {
Expand Down Expand Up @@ -466,7 +468,7 @@ func (suite *MiddlewareTestSuite) TestAnteDecorator() {
msgs := tc.malleate(suite)
deliverCtx := suite.chainB.GetContext().WithIsCheckTx(false)
checkCtx := suite.chainB.GetContext().WithIsCheckTx(true)
txHandler := middleware.ComposeMiddlewares(noopTxHandler, IbcTxMiddleware(suite.chainB.App.GetIBCKeeper().ChannelKeeper))
txHandler := middleware.ComposeMiddlewares(noopTxHandler, ibcmiddleware.IbcTxMiddleware(suite.chainB.App.GetIBCKeeper().ChannelKeeper))

// create multimsg tx
txBuilder := suite.chainB.TxConfig.NewTxBuilder()
Expand Down

0 comments on commit ecfdb14

Please sign in to comment.