Skip to content

Commit 14ad5fa

Browse files
committed
fix(tests): update error message assertion for node 10.4.0+
Updated the error message assertion in `TestTransfer` to account for the new error message format introduced in node 10.4.0. The assertion now supports both the new and old error messages, ensuring compatibility across versions.
1 parent c31c65b commit 14ad5fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cardano_node_tests/tests/test_native_tokens.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,9 @@ def test_transfer_invalid_token_amount(
21042104

21052105
exc_val = str(excinfo.value)
21062106
assert (
2107-
"Non-Ada assets are unbalanced" in exc_val
2107+
"The transaction does not balance in its use of assets"
2108+
in exc_val # In node 10.4.0+
2109+
or "Non-Ada assets are unbalanced" in exc_val
21082110
or "Illegal Value in TxOut" in exc_val # In node 9.2.0+
21092111
or re.search(r"Negative quantity \(-[0-9]*\) in transaction output", exc_val)
21102112
), exc_val

0 commit comments

Comments
 (0)