2023-03-28 22:32:36 +00:00
|
|
|
package e2e_test
|
|
|
|
|
2023-06-06 21:51:42 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
2023-03-28 22:32:36 +00:00
|
|
|
|
|
|
|
// TestUpgradeHandler can be used to run tests post-upgrade. If an upgrade is enabled, all tests
|
|
|
|
// are run against the upgraded chain. However, this file is a good place to consolidate all
|
|
|
|
// acceptance tests for a given set of upgrade handlers.
|
2023-06-05 20:22:23 +00:00
|
|
|
func (suite *IntegrationTestSuite) TestUpgradeHandler() {
|
2023-03-28 22:32:36 +00:00
|
|
|
suite.SkipIfUpgradeDisabled()
|
|
|
|
fmt.Println("An upgrade has run!")
|
|
|
|
suite.True(true)
|
2023-06-06 21:51:42 +00:00
|
|
|
|
|
|
|
// Uncomment & use these contexts to compare chain state before & after the upgrade occurs.
|
|
|
|
// beforeUpgradeCtx := util.CtxAtHeight(suite.UpgradeHeight - 1)
|
|
|
|
// afterUpgradeCtx := util.CtxAtHeight(suite.UpgradeHeight)
|
2023-03-28 22:32:36 +00:00
|
|
|
}
|