Skip to content

Commit

Permalink
improve chain test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 committed Jan 10, 2024
1 parent 9480c17 commit e0cbbd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/ratesync/keeper/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ func (suite *IntegrationTestSuite) TestHostChainRemove() {
}
}

func (suite *IntegrationTestSuite) TestGetHostChainsByChainID() {
keeper, ctx := suite.app.RatesyncKeeper, suite.ctx
items := createNChain(keeper, ctx, 10)
suite.Require().ElementsMatch(items, keeper.GetAllHostChain(ctx))
suite.Require().ElementsMatch(items, keeper.GetHostChainsByChainID(ctx, "test-1"))

}

func (suite *IntegrationTestSuite) TestHostChainGetAll() {
keeper, ctx := suite.app.RatesyncKeeper, suite.ctx
items := createNChain(keeper, ctx, 10)
Expand Down

0 comments on commit e0cbbd8

Please sign in to comment.