fix(systemtests): align halt-height with comet in upgrade (backport #23306) (#23317)

Co-authored-by: mmsqe <mavis@crypto.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
mergify[bot] 2025-01-10 11:56:14 +01:00 committed by GitHub
parent 3ca6544b9b
commit 11ee0b88ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,12 @@ func TestChainUpgrade(t *testing.T) {
upgradeName = "v050-to-v052" // must match UpgradeName in simapp/upgrades.go
)
systest.Sut.StartChain(t, fmt.Sprintf("--halt-height=%d", upgradeHeight+1))
// if v2 is enabled, we need to start the chain with a different flag
if systest.IsV2() {
systest.Sut.StartChain(t, fmt.Sprintf("--comet.halt-height=%d", upgradeHeight+1))
} else {
systest.Sut.StartChain(t, fmt.Sprintf("--halt-height=%d", upgradeHeight+1))
}
cli := systest.NewCLIWrapper(t, systest.Sut, systest.Verbose)
govAddr := sdk.AccAddress(address.Module("gov")).String()