Skip to content

Commit

Permalink
Fix test_gw_doesnt_exist.py
Browse files Browse the repository at this point in the history
* That function doesnt exist
  • Loading branch information
pehala committed May 28, 2024
1 parent b880f5d commit 6a04287
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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}"

0 comments on commit 6a04287

Please sign in to comment.