Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Apr 18, 2024
1 parent ea830f4 commit 2a68e45
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions integration_tests/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
deploy_contract,
edit_ini_sections,
get_consensus_params,
get_send_enable,
send_transaction,
wait_for_block,
wait_for_new_blocks,
Expand Down Expand Up @@ -98,9 +97,6 @@ def exec(c, tmp_path_factory):
{"denom": "basetcro", "enabled": False},
{"denom": "stake", "enabled": True},
]
p = get_send_enable(port)
print("mm-p0", p)
# assert sorted(p, key=lambda x: x["denom"]) == send_enable

# export genesis from old version
c.supervisorctl("stop", "all")
Expand All @@ -115,6 +111,8 @@ def exec(c, tmp_path_factory):
wait_for_new_blocks(cli, 1)

def do_upgrade(plan_name, target, mode=None, method="submit-legacy-proposal"):
# test migrate keystore
cli.migrate_keystore()
rsp = cli.gov_propose_legacy(
"community",
"software-upgrade",
Expand Down Expand Up @@ -143,9 +141,6 @@ def do_upgrade(plan_name, target, mode=None, method="submit-legacy-proposal"):
print("upgrade v1.0 height", target_height00)
do_upgrade("v1.0.0", target_height00, "block", method="submit-proposal")

p = get_send_enable(port)
print("mm-p1", p)

cli = c.cosmos_cli()
wait_for_port(ports.evmrpc_port(c.base_port(0)))
receipt = send_transaction(
Expand All @@ -165,9 +160,6 @@ def do_upgrade(plan_name, target, mode=None, method="submit-legacy-proposal"):

do_upgrade("v1.1.0", target_height0, "block")

# test migrate keystore
cli.migrate_keystore()

# check basic tx works
wait_for_port(ports.evmrpc_port(c.base_port(0)))
receipt = send_transaction(
Expand Down

0 comments on commit 2a68e45

Please sign in to comment.