-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(systemtests): fix failing tests (#22145)
- Loading branch information
Showing
5 changed files
with
52 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,25 +17,28 @@ import ( | |
) | ||
|
||
func TestChainUpgrade(t *testing.T) { | ||
// err> panic: failed to load latest version: failed to load store: initial version set to 22, but found earlier version 1 [cosmossdk.io/[email protected]/rootmulti/store.go:256] | ||
t.Skip("Skipped until any v052 artifact is available AND main branch handles the store upgrade proper") | ||
|
||
// Scenario: | ||
// start a legacy chain with some state | ||
// when a chain upgrade proposal is executed | ||
// then the chain upgrades successfully | ||
sut.StopChain() | ||
|
||
legacyBinary := FetchExecutable(t, "v0.50") | ||
legacyBinary := FetchExecutable(t, "v0.52") | ||
t.Logf("+++ legacy binary: %s\n", legacyBinary) | ||
currentBranchBinary := sut.execBinary | ||
currentInitializer := sut.testnetInitializer | ||
sut.SetExecBinary(legacyBinary) | ||
sut.SetTestnetInitializer(NewModifyConfigYamlInitializer(legacyBinary, sut)) | ||
sut.SetTestnetInitializer(InitializerWithBinary(legacyBinary, sut)) | ||
sut.SetupChain() | ||
votingPeriod := 5 * time.Second // enough time to vote | ||
sut.ModifyGenesisJSON(t, SetGovVotingPeriod(t, votingPeriod)) | ||
|
||
const ( | ||
upgradeHeight int64 = 22 | ||
upgradeName = "v050-to-v051" | ||
upgradeName = "v052-to-v054" // must match UpgradeName in simapp/upgrades.go | ||
) | ||
|
||
sut.StartChain(t, fmt.Sprintf("--halt-height=%d", upgradeHeight+1)) | ||
|