Skip to content

Commit

Permalink
test: add test for queryProviderInfo (#1189)
Browse files Browse the repository at this point in the history
* test: add test for queryProviderInfo

* chore: correct typo
  • Loading branch information
yaruwangway authored Oct 11, 2023
1 parent c25b4c0 commit 9f04ca6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/integration/query_providerinfo_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package integration

func (s *CCVTestSuite) TestQueryProviderInfo() {
s.SetupCCVChannel(s.path)
s.SendEmptyVSCPacket()

chainInfo, err := s.consumerApp.GetConsumerKeeper().GetProviderInfo(s.consumerCtx())
s.Require().NoError(err)
s.Require().Equal(chainInfo.Provider.ChainID, "testchain1")
s.Require().Equal(chainInfo.Consumer.ChainID, "testchain2")
s.Require().Equal(chainInfo.Provider.ClientID, "07-tendermint-0")
s.Require().Equal(chainInfo.Consumer.ClientID, "07-tendermint-0")
s.Require().Equal(chainInfo.Provider.ConnectionID, "connection-0")
s.Require().Equal(chainInfo.Consumer.ConnectionID, "connection-0")
s.Require().Equal(chainInfo.Provider.ChannelID, "channel-0")
s.Require().Equal(chainInfo.Consumer.ChannelID, "channel-0")
}

0 comments on commit 9f04ca6

Please sign in to comment.