Skip to content

Commit

Permalink
More time for first produced block in new epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoura committed Jan 17, 2022
1 parent ccbda95 commit 3e950b9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cardano_node_tests/tests/test_configuration.py
Expand Up @@ -121,13 +121,12 @@ def cluster_slot_length(


def check_epoch_length(cluster_obj: clusterlib.ClusterLib) -> None:
end_sec = 15
end_sec_padded = end_sec + 15 # padded to make sure tip got updated
end_sec = 20
end_sec_padded = end_sec + 20 # padded to make sure tip got updated

cluster_obj.wait_for_new_epoch()
epoch = cluster_obj.get_epoch()
sleep_time = cluster_obj.epoch_length_sec - end_sec
time.sleep(sleep_time)
time.sleep(cluster_obj.epoch_length_sec - end_sec)
assert epoch == cluster_obj.get_epoch()

time.sleep(end_sec_padded)
Expand Down

0 comments on commit 3e950b9

Please sign in to comment.