From 6a04287c696206d8643c4c64157cf47dc3972fca Mon Sep 17 00:00:00 2001 From: phala Date: Tue, 28 May 2024 11:22:52 +0200 Subject: [PATCH] Fix test_gw_doesnt_exist.py * That function doesnt exist --- .../kuadrant/gateway/reconciliation/test_gw_doesnt_exist.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testsuite/tests/kuadrant/gateway/reconciliation/test_gw_doesnt_exist.py b/testsuite/tests/kuadrant/gateway/reconciliation/test_gw_doesnt_exist.py index 8f1e373f..72d7ca85 100644 --- a/testsuite/tests/kuadrant/gateway/reconciliation/test_gw_doesnt_exist.py +++ b/testsuite/tests/kuadrant/gateway/reconciliation/test_gw_doesnt_exist.py @@ -4,6 +4,7 @@ from testsuite.gateway import CustomReference from testsuite.policy.tls_policy import TLSPolicy +from testsuite.utils import has_condition from . import dns_policy pytestmark = [pytest.mark.kuadrant_only] @@ -32,6 +33,6 @@ def test_no_gw(request, create_cr, hub_openshift, blame, module_label, cluster_i request.addfinalizer(policy.delete) policy.commit() - assert policy.wait_for_condition( - "Accepted", "False", "TargetNotFound", "target does-not-exist was not found", timelimit=20 + assert policy.wait_until( + has_condition("Accepted", "False", "TargetNotFound", "target does-not-exist was not found"), timelimit=20 ), f"Policy did not reach expected status, instead it was: {policy.refresh().model.status.conditions}"