From d9d290c79c1f54828930bccd66386bf8c22021b6 Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Thu, 22 Jan 2026 13:31:08 +0100 Subject: [PATCH] fix(tests): handle UnelectedCommitteeVoters error in test Update committee voting test to accept the new "UnelectedCommitteeVoters" error message in addition to the previous "ConwayMempoolFailure" message. This ensures compatibility with protocol version >= 11 and maintains test stability across protocol updates. --- .../tests/tests_conway/test_committee.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cardano_node_tests/tests/tests_conway/test_committee.py b/cardano_node_tests/tests/tests_conway/test_committee.py index cddfebdb6..e0eef128e 100644 --- a/cardano_node_tests/tests/tests_conway/test_committee.py +++ b/cardano_node_tests/tests/tests_conway/test_committee.py @@ -408,10 +408,13 @@ def _auth_hot_keys() -> None: ) exc_value = str(excinfo.value) with common.allow_unstable_error_messages(): - assert re.search( - "ConwayMempoolFailure .*Unelected committee members are not " - "allowed to cast votes:", - exc_value, + assert ( + "UnelectedCommitteeVoters" in exc_value # In protocol version >= 11 + or re.search( + "ConwayMempoolFailure .*Unelected committee members are not " + "allowed to cast votes:", + exc_value, + ) ), exc_value subtest_errors.pop()