Skip to content

Commit

Permalink
test: Add getters for testing epochs in Gaia (backport #1739) (#1749)
Browse files Browse the repository at this point in the history
test: Add getters for testing epochs in Gaia (#1739)

* add getter and setters for testing

* add docs

(cherry picked from commit 1a7d03c)

Co-authored-by: Simon Noetzlin <[email protected]>
Co-authored-by: MSalopek <[email protected]>
  • Loading branch information
3 people authored Apr 8, 2024
1 parent ff45eb9 commit e6eed7e
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 e6eed7e

Please sign in to comment.