Skip to content

Commit

Permalink
removed unused chain
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslara committed Sep 19, 2022
1 parent 2322792 commit 4142d48
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/apps/hooks/ibc_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ type HooksTestSuite struct {

chainA *ibctesting.TestChain
chainB *ibctesting.TestChain
chainC *ibctesting.TestChain

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

func (suite *HooksTestSuite) SetupTest() {
suite.coordinator = ibctesting.NewCoordinator(suite.T(), 3)
suite.chainA = suite.coordinator.GetChain(ibctesting.GetChainID(1))
suite.chainB = suite.coordinator.GetChain(ibctesting.GetChainID(2))
suite.chainC = suite.coordinator.GetChain(ibctesting.GetChainID(3))
}

func TestIBCHooksTestSuite(t *testing.T) {
Expand Down Expand Up @@ -127,7 +124,7 @@ func (suite *HooksTestSuite) TestOnRecvPacketHooks() {
data := transfertypes.NewFungibleTokenPacketData(trace.GetFullDenomPath(), amount.String(), suite.chainA.SenderAccount.GetAddress().String(), receiver)
packet := channeltypes.NewPacket(data.GetBytes(), seq, path.EndpointA.ChannelConfig.PortID, path.EndpointA.ChannelID, path.EndpointB.ChannelConfig.PortID, path.EndpointB.ChannelID, clienttypes.NewHeight(1, 100), 0)

ack := suite.chainB.GetSimApp().HooksMiddleware.OnRecvPacket(suite.chainB.GetContext(), packet, suite.chainC.SenderAccount.GetAddress())
ack := suite.chainB.GetSimApp().HooksMiddleware.OnRecvPacket(suite.chainB.GetContext(), packet, suite.chainA.SenderAccount.GetAddress())

if tc.expPass {
suite.Require().True(ack.Success())
Expand Down

0 comments on commit 4142d48

Please sign in to comment.