Skip to content

Commit bb8f0d9

Browse files
committed
fix(test_committee): ensure proposal and CC members in one epoch
Moved the wait_for_epoch_interval call to ensure proposal is submitted and CC members data created within one epoch. This change ensures that the actions_epoch is correctly set before calculating the expiration of new CC members.
1 parent 1566621 commit bb8f0d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cardano_node_tests/tests/tests_conway/test_committee.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,14 @@ def test_add_rm_committee_members( # noqa: C901
377377

378378
[r.success() for r in (reqc.cli003, reqc.cli004, reqc.cli005, reqc.cli006)]
379379

380+
# Make sure we have enough time to submit the proposals in one epoch
381+
clusterlib_utils.wait_for_epoch_interval(
382+
cluster_obj=cluster, start=1, stop=common.EPOCH_STOP_SEC_BUFFER - 10
383+
)
384+
actions_epoch = cluster.g_query.get_epoch()
385+
380386
# New CC members to be added
381-
cc_member1_expire = cluster.g_query.get_epoch() + 3
387+
cc_member1_expire = actions_epoch + 3
382388
cc_members = [
383389
clusterlib.CCMember(
384390
epoch=cc_member1_expire,
@@ -707,12 +713,6 @@ def _check_resign_dbsync(res_member: clusterlib.CCMember) -> None:
707713
cc_member_cold_key=res_member.cold_vkey_hash
708714
)
709715

710-
# Make sure we have enough time to submit the proposals in one epoch
711-
clusterlib_utils.wait_for_epoch_interval(
712-
cluster_obj=cluster, start=1, stop=common.EPOCH_STOP_SEC_BUFFER - 10
713-
)
714-
actions_epoch = cluster.g_query.get_epoch()
715-
716716
# Create an action to add new CC members
717717
add_cc_action, action_add_txid, action_add_ix = _add_members()
718718

0 commit comments

Comments
 (0)