Skip to content

Commit

Permalink
nit: path name
Browse files Browse the repository at this point in the history
  • Loading branch information
seantking committed Feb 24, 2022
1 parent 40ccecd commit 5bdcd17
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions modules/apps/29-fee/fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type FeeTestSuite struct {
chainC *ibctesting.TestChain

path *ibctesting.Path
path2 *ibctesting.Path
pathAToC *ibctesting.Path
}

func (suite *FeeTestSuite) SetupTest() {
Expand All @@ -44,7 +44,7 @@ func (suite *FeeTestSuite) SetupTest() {
path.EndpointB.ChannelConfig.Version = mockFeeVersion
path.EndpointA.ChannelConfig.PortID = ibctesting.MockFeePort
path.EndpointB.ChannelConfig.PortID = ibctesting.MockFeePort
suite.path2 = path
suite.pathAToC = path
}

func TestIBCFeeTestSuite(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions modules/apps/29-fee/ibc_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ func (suite *FeeTestSuite) TestOnRecvPacket() {
tc := tc
suite.Run(tc.name, func() {
suite.SetupTest()
// setup path2 (chainA -> chainC) first in order to have different channel IDs for chainA & chainB
suite.coordinator.Setup(suite.path2)
// setup pathAToC (chainA -> chainC) first in order to have different channel IDs for chainA & chainB
suite.coordinator.Setup(suite.pathAToC)
// setup path for chainA -> chainB
suite.coordinator.Setup(suite.path)

Expand Down
6 changes: 3 additions & 3 deletions modules/apps/29-fee/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ type KeeperTestSuite struct {
chainB *ibctesting.TestChain
chainC *ibctesting.TestChain

path *ibctesting.Path
path2 *ibctesting.Path
path *ibctesting.Path
pathAToC *ibctesting.Path

queryClient types.QueryClient
}
Expand All @@ -55,7 +55,7 @@ func (suite *KeeperTestSuite) SetupTest() {
path.EndpointB.ChannelConfig.Version = mockFeeVersion
path.EndpointA.ChannelConfig.PortID = ibctesting.MockFeePort
path.EndpointB.ChannelConfig.PortID = ibctesting.MockFeePort
suite.path2 = path
suite.pathAToC = path

queryHelper := baseapp.NewQueryServerTestHelper(suite.chainA.GetContext(), suite.chainA.GetSimApp().InterfaceRegistry())
types.RegisterQueryServer(queryHelper, suite.chainA.GetSimApp().IBCFeeKeeper)
Expand Down
4 changes: 2 additions & 2 deletions modules/apps/29-fee/keeper/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func (suite *KeeperTestSuite) TestWriteAcknowledgementAsync() {
suite.SetupTest()

// open incentivized channels
// setup path2 (chainA -> chainC) first in order to have different channel IDs for chainA & chainB
suite.coordinator.Setup(suite.path2)
// setup pathAToC (chainA -> chainC) first in order to have different channel IDs for chainA & chainB
suite.coordinator.Setup(suite.pathAToC)
// setup path for chainA -> chainB
suite.coordinator.Setup(suite.path)

Expand Down

0 comments on commit 5bdcd17

Please sign in to comment.