Skip to content

Commit

Permalink
Don't wait for stake distribution
Browse files Browse the repository at this point in the history
Local cluster starts for more than 3 shelley epochs, so stake
distribution is already working.
In tests we expect precise epochs numbers, so we need to get rid of
any unexpected (potential) waiting. If it happens in the future that we
have local cluster that doesn't have stake distribution working, let it
fail in an expected manner.
  • Loading branch information
mkoura committed Dec 3, 2021
1 parent 3cd36bc commit 17606f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion cardano_node_tests/tests/delegation.py
Expand Up @@ -179,7 +179,6 @@ def delegate_stake_addr(

# check that the stake address was delegated
if check_delegation:
clusterlib_utils.wait_for_stake_distribution(cluster_obj)
stake_addr_info = cluster_obj.get_stake_addr_info(pool_user.stake.address)
assert stake_addr_info.delegation, f"Stake address was not delegated yet: {stake_addr_info}"
assert pool_id == stake_addr_info.delegation, "Stake address delegated to wrong pool"
Expand Down
4 changes: 0 additions & 4 deletions cardano_node_tests/tests/test_delegation.py
Expand Up @@ -255,8 +255,6 @@ def test_deregister(
pool_id=delegation_out.pool_id,
)

clusterlib_utils.wait_for_stake_distribution(cluster)

src_address = delegation_out.pool_user.payment.address

LOGGER.info("Waiting up to 4 full epochs for first reward.")
Expand Down Expand Up @@ -675,8 +673,6 @@ def test_addr_delegation_deregistration(
== src_registered_balance - tx_raw_output_deleg.fee + cluster.get_address_deposit()
), f"Incorrect balance for source address `{user_payment.address}`"

clusterlib_utils.wait_for_stake_distribution(cluster)

# check that the stake address was NOT delegated
stake_addr_info = cluster.get_stake_addr_info(user_registered.stake.address)
assert not stake_addr_info.delegation, f"Stake address was delegated: {stake_addr_info}"
Expand Down

0 comments on commit 17606f1

Please sign in to comment.