Skip to content

Commit 98a5063

Browse files
This PR refactors test_delegation.py to align with the new build Method
1 parent c323870 commit 98a5063

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cardano_node_tests/tests/test_delegation.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,15 +956,18 @@ def test_addr_delegation_deregistration(
956956
signing_key_files=[user_payment.skey_file, user_registered.stake.skey_file],
957957
)
958958

959-
try:
960-
tx_raw_output_deleg = clusterlib_utils.build_and_submit_tx(
959+
def _build_and_submit() -> clusterlib.TxRawOutput:
960+
return clusterlib_utils.build_and_submit_tx(
961961
cluster_obj=cluster,
962962
name_template=f"{temp_template}_deleg_dereg",
963963
src_address=user_payment.address,
964964
tx_files=tx_files,
965965
build_method=build_method,
966966
witness_override=len(tx_files.signing_key_files),
967967
)
968+
969+
try:
970+
tx_raw_output_deleg = common.match_blocker(func=_build_and_submit)
968971
except clusterlib.CLIError as exc:
969972
if "ValueNotConservedUTxO" in str(exc):
970973
issues.cli_942.finish_test()

0 commit comments

Comments
 (0)