Skip to content

Commit ad73bd9

Browse files
committed
fix(tests): update error checks for tx id deserialization
Update negative transaction tests to check for "Failed to deserialise" error messages, reflecting changes in node 10.5.0+. Retain previous checks for backward compatibility with older error formats.
1 parent dbc929a commit ad73bd9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cardano_node_tests/tests/test_tx_negative.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,8 @@ def test_invalid_length_utxo_hash(
13021302
cluster_obj=cluster, pool_users=pool_users, utxo=utxo_copy, temp_template=temp_template
13031303
)
13041304
assert (
1305-
"Incorrect transaction id format" in err
1305+
"Failed to deserialise" in err # With node 10.5.0+
1306+
or "Incorrect transaction id format" in err
13061307
or "Failed reading" in err
13071308
or "expecting transaction id (hexadecimal)" in err
13081309
)
@@ -1337,7 +1338,7 @@ def test_build_invalid_length_utxo_hash(
13371338
use_build_cmd=True,
13381339
)
13391340
assert (
1340-
"Unable to deserialise TxId" in err # With node 10.5.0+
1341+
"Failed to deserialise" in err # With node 10.5.0+
13411342
or "Incorrect transaction id format" in err
13421343
or "Failed reading" in err
13431344
or "expecting transaction id (hexadecimal)" in err

0 commit comments

Comments
 (0)