From 12802cf786950e5f30ef723471a3bb2ce5ed5ffa Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Fri, 6 Oct 2023 16:57:22 +0200 Subject: [PATCH] Match also the new errors from cardano-cli 297 issue https://github.com/input-output-hk/cardano-cli/issues/297#issuecomment-1747536111 --- cardano_node_tests/tests/tests_plutus/test_delegation.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cardano_node_tests/tests/tests_plutus/test_delegation.py b/cardano_node_tests/tests/tests_plutus/test_delegation.py index f60b01569..313ee49c3 100644 --- a/cardano_node_tests/tests/tests_plutus/test_delegation.py +++ b/cardano_node_tests/tests/tests_plutus/test_delegation.py @@ -768,7 +768,14 @@ def test_delegate_deregister( ) except clusterlib.CLIError as exc: str_exc = str(exc) - if "(MissingScriptWitnessesUTXOW" not in str_exc and "(MissingRedeemers" not in str_exc: + if not ( + # Old cardano-cli 297 issue + "(MissingScriptWitnessesUTXOW" in str_exc + or "(MissingRedeemers" in str_exc + # New cardano-cli 297 issue + or "(ExtraRedeemers" in str_exc + or "points to a script hash that is not known" in str_exc + ): raise ISSUE_297.finish_test()