Skip to content

Commit

Permalink
unbond
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Dec 17, 2024
1 parent 3a8e76f commit 8a2383a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions integration_tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
submit_gov_proposal,
w3_wait_for_block,
wait_for_block,
wait_for_fn,
wait_for_new_blocks,
wait_for_port,
)
Expand Down Expand Up @@ -1003,6 +1004,19 @@ def test_join_validator(cronos):
"max_change_rate": "10000000000000000",
}

def check_status(status):
return cli1.validator(val_addr)["status"] == status

wait_for_fn("check_status", lambda: check_status("BOND_STATUS_BONDED"))
res = cli1.unbond_amount(
val_addr,
f"{staked}stake",
cli1.address("validator"),
gas_prices=DEFAULT_GAS_PRICE,
)
assert res["code"] == 0
wait_for_fn("check_status", lambda: check_status("BOND_STATUS_UNBONDING"))


def test_block_stm_delete(cronos):
"""
Expand Down

0 comments on commit 8a2383a

Please sign in to comment.