Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Sep 1, 2022
1 parent 8949fa9 commit 0bd27e9
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ func (suite *KeeperTestSuite) TestAssertChannelCapabilityMigrations() {
func() {},
true,
},
{
"capability not found",
func() {
suite.chainA.GetSimApp().ICAControllerKeeper.SetActiveChannelID(
suite.chainA.GetContext(),
ibctesting.FirstConnectionID,
ibctesting.MockPort,
ibctesting.FirstChannelID,
)
},
false,
},
}

for _, tc := range testCases {
Expand All @@ -32,7 +44,12 @@ func (suite *KeeperTestSuite) TestAssertChannelCapabilityMigrations() {

migrator := keeper.NewMigrator(&suite.chainA.GetSimApp().ICAControllerKeeper)
err = migrator.AssertChannelCapabilityMigrations(suite.chainA.GetContext())
suite.Require().NoError(err)

if tc.expPass {
suite.Require().NoError(err)
} else {
suite.Require().Error(err)
}
})
}
}

0 comments on commit 0bd27e9

Please sign in to comment.