Skip to content

Commit

Permalink
test: Add getters for testing epochs in Gaia (#1739)
Browse files Browse the repository at this point in the history
* add getter and setters for testing

* add docs
  • Loading branch information
sainoe authored Apr 3, 2024
1 parent 748a984 commit 1a7d03c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/integration/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@ func (suite *CCVTestSuite) BeforeTest(suiteName, testName string) {
}
}

// GetProviderChain returns the provider chain struct
// which is required to get context and have control over the blocks
func (suite *CCVTestSuite) GetProviderChain() *ibctesting.TestChain {
return suite.providerChain
}

// GetCCVPath returns the CCV path which is
// required to call SetupCCVChannel
func (suite *CCVTestSuite) GetCCVPath() *ibctesting.Path {
return suite.path
}

// SetupTest sets up in-mem state before every test
func (suite *CCVTestSuite) SetupTest() {
suite.packetSniffers = make(map[*ibctesting.TestChain]*packetSniffer)
Expand Down

0 comments on commit 1a7d03c

Please sign in to comment.