Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed Oct 9, 2023
1 parent f663db6 commit 05552b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/system/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestChainUpgrade(t *testing.T) {
currentBranchBinary := sut.ExecBinary
sut.ExecBinary = legacyBinary
sut.SetupChain()
votingPeriod := 10 * time.Second // enough time to vote
votingPeriod := 5 * time.Second // enough time to vote
sut.ModifyGenesisJSON(t, SetGovVotingPeriod(t, votingPeriod))

const (
Expand All @@ -44,6 +44,7 @@ func TestChainUpgrade(t *testing.T) {
// set some state to ensure that migrations work
verifierAddr := cli.AddKey("verifier")
beneficiary := randomBech32Addr()
cli.FundAddress(verifierAddr, "1000stake")

t.Log("Launch hackatom contract")
codeID := cli.WasmStore("./testdata/hackatom.wasm.gzip")
Expand Down Expand Up @@ -89,13 +90,12 @@ func TestChainUpgrade(t *testing.T) {
sut.ExecBinary = currentBranchBinary
sut.StartChain(t)

t.Skip("wasmvm 1.4 upgrade fails, currently. Skipping for now")
// ensure that state matches expectations
gotRsp = cli.QuerySmart(contractAddr, `{"verifier":{}}`)
require.Equal(t, fmt.Sprintf(`{"data":{"verifier":"%s"}}`, verifierAddr), gotRsp)
// and contract execution works as expected
RequireTxSuccess(t, cli.WasmExecute(contractAddr, verifierAddr, `{"release":{}}`))
assert.Equal(t, 1_000_000, cli.QueryBalance(beneficiary, "stake"))
RequireTxSuccess(t, cli.WasmExecute(contractAddr, `{"release":{}}`, verifierAddr))
assert.Equal(t, int64(1_000_000), cli.QueryBalance(beneficiary, "stake"))
}

const cacheDir = "binaries"
Expand Down

0 comments on commit 05552b7

Please sign in to comment.