Skip to content

Commit

Permalink
Merge pull request #413 from pehala/fix_wait_condition
Browse files Browse the repository at this point in the history
Fix test_gw_doesnt_exist.py
  • Loading branch information
pehala authored May 28, 2024
2 parents 669fd89 + 6a04287 commit ce4f796
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 ce4f796

Please sign in to comment.