diff --git a/cardano_node_tests/tests/test_addr_registration.py b/cardano_node_tests/tests/test_addr_registration.py index da4e863e1..df700bae0 100644 --- a/cardano_node_tests/tests/test_addr_registration.py +++ b/cardano_node_tests/tests/test_addr_registration.py @@ -309,11 +309,12 @@ def test_addr_registration_certificate_order( deposit=deposit, ) except (clusterlib.CLIError, submit_api.SubmitApiError) as exc: - if "(ValueNotConservedUTxO" in str(exc) and VERSIONS.transaction_era >= VERSIONS.CONWAY: + str_exc = str(exc) + if "(ValueNotConservedUTxO" in str_exc and VERSIONS.transaction_era >= VERSIONS.CONWAY: issues.api_484.finish_test() - if ( - build_method == clusterlib_utils.BuildMethods.BUILD_EST - and "does not balance in its use of assets" in str(exc) + if build_method == clusterlib_utils.BuildMethods.BUILD_EST and ( + "The transaction balance is negative" in str_exc + or "does not balance in its use of assets" in str_exc ): issues.cli_1199.finish_test() raise diff --git a/cardano_node_tests/tests/test_tx_basic.py b/cardano_node_tests/tests/test_tx_basic.py index 417c0c656..015be12a9 100644 --- a/cardano_node_tests/tests/test_tx_basic.py +++ b/cardano_node_tests/tests/test_tx_basic.py @@ -508,7 +508,11 @@ def test_transfer_all_build_estimate( tx_files=tx_files, ) except clusterlib.CLIError as exc: - if "balance of the transaction is negative" in str(exc): + str_exc = str(exc) + if ( + "The transaction balance is negative" in str_exc + or "balance of the transaction is negative" in str_exc + ): issues.cli_1199.finish_test() raise