Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion cardano_node_tests/tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3107,6 +3107,14 @@ def test_invalid( # noqa: C901
# Try to send funds from script address
out_utxos = cluster.g_query.get_utxo(tx_raw_output=tx_output)
script_utxos = clusterlib.filter_utxos(utxos=out_utxos, address=script_address)
if scenario in ("all2", "any2"):
# Funding can take minutes under load. Keep the spend an hour in the future;
# a later Tx lower bound still satisfies the script's original "after" slot.
invalid_before = max(invalid_before, cluster.g_query.get_slot_no()) + int(
3_600 / cluster.slot_length
)
invalid_hereafter = invalid_before + 100

with pytest.raises((clusterlib.CLIError, submit_api.SubmitApiError)) as excinfo:
multisig_tx(
cluster_obj=cluster,
Expand All @@ -3123,7 +3131,8 @@ def test_invalid( # noqa: C901
build_method=build_method,
)
exc_value = str(excinfo.value)
assert expected_err in exc_value, exc_value
with common.allow_unstable_error_messages():
assert expected_err in exc_value, exc_value

dbsync_utils.check_tx(cluster_obj=cluster, tx_raw_output=tx_output)

Expand Down
Loading