Skip to content

Commit

Permalink
test: adding check that forward relayer address is successfully delet…
Browse files Browse the repository at this point in the history
…ed if set
  • Loading branch information
seantking committed Jan 12, 2022
1 parent 917b1ef commit 45cdb0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/apps/29-fee/keeper/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ func (suite *KeeperTestSuite) TestWriteAcknowledgementAsync() {
func() {},
true,
},
{
"forward relayer address is successfully deleted",
func() {
suite.chainB.GetSimApp().IBCFeeKeeper.SetForwardRelayerAddress(suite.chainB.GetContext(), channeltypes.NewPacketId(suite.path.EndpointA.ChannelID, suite.path.EndpointA.ChannelConfig.PortID, 1), suite.chainA.SenderAccount.GetAddress().String())
},
true,
},
}

for _, tc := range testCases {
Expand Down Expand Up @@ -49,6 +56,8 @@ func (suite *KeeperTestSuite) TestWriteAcknowledgementAsync() {

if tc.expPass {
suite.Require().NoError(err)
_, found := suite.chainB.GetSimApp().IBCFeeKeeper.GetForwardRelayerAddress(suite.chainB.GetContext(), channeltypes.NewPacketId(suite.path.EndpointA.ChannelID, suite.path.EndpointA.ChannelConfig.PortID, 1))
suite.Require().False(found)
} else {
suite.Require().Error(err)
}
Expand Down

0 comments on commit 45cdb0c

Please sign in to comment.