Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Apr 12, 2024
1 parent 3780f8f commit 9e9a2d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integration_tests/test_fee_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def update_feemarket_param(node, tmp_path, new_multiplier=2, new_denominator=200
proposal.write_text(json.dumps(proposal_src))
rsp = cli.submit_gov_proposal(proposal, from_="community")
assert rsp["code"] == 0, rsp["raw_log"]
approve_proposal(node, rsp, status=3)
approve_proposal(node, rsp)
print("check params have been updated now")
p = cli.get_params("feemarket")["params"]
assert p["base_fee"] == new_base_fee
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def find_log_event_attrs(events, ev_type, cond=None):
return None


def approve_proposal(n, rsp, status="PROPOSAL_STATUS_PASSED"):
def approve_proposal(n, rsp):
cli = n.cosmos_cli()
rsp = cli.event_query_tx_for(rsp["txhash"])
# get proposal_id
Expand All @@ -351,4 +351,4 @@ def cb(attrs):
proposal = cli.query_proposal(proposal_id)
wait_for_block_time(cli, isoparse(proposal["voting_end_time"]))
proposal = cli.query_proposal(proposal_id)
assert proposal["status"] == status, proposal
assert proposal["status"] == "PROPOSAL_STATUS_PASSED", proposal

0 comments on commit 9e9a2d6

Please sign in to comment.