Skip to content

Commit

Permalink
add if v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Jan 10, 2025
1 parent a7426a2 commit af4b3d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/systemtests/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("--comet.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()
Expand Down

0 comments on commit af4b3d6

Please sign in to comment.