Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 26, 2023
1 parent be0a6ca commit 11b0f9a
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions integration_tests/test_gov.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,17 @@ def test_host_enabled(cluster):


def test_gov_voting(cluster):
"""
- change voting_period from default 10s to 216s
"""
cli = cluster.cosmos_cli()
p = cli.query_gov_params()
assert p["voting_params"]["voting_period"] == "10000000000"
print("mm-query_gov_params", p)
voting_period = "21600"

def assert_voting_period(voting_period_in_s):
p = cli.query_gov_params()
assert p["voting_params"]["voting_period"] == voting_period_in_s

assert_voting_period("10000000000")
voting_period_in_s = "216000000000"
rsp = cluster.gov_propose_legacy(
"community",
"param-change",
Expand All @@ -349,12 +355,11 @@ def test_gov_voting(cluster):
{
"subspace": "gov",
"key": "votingparams",
"value": {"voting_period": voting_period},
"value": {"voting_period": voting_period_in_s},
}
],
},
)
assert rsp["code"] == 0, rsp["raw_log"]
approve_proposal(cluster, rsp)
p = cli.query_gov_params()
assert p["voting_params"]["voting_period"] == voting_period
assert_voting_period(voting_period_in_s)

0 comments on commit 11b0f9a

Please sign in to comment.