diff --git a/tests/suite/test_dos.py b/tests/suite/test_dos.py index 123418fcec..218abc37b1 100644 --- a/tests/suite/test_dos.py +++ b/tests/suite/test_dos.py @@ -248,8 +248,11 @@ def test_dos_sec_logs_on( delete_items_from_yaml(kube_apis, src_ing_yaml, test_namespace) print(log_contents) + retry = 0 + while 'product="app-protect-dos"' not in log_contents and retry < 10: + wait_before_test() + retry += 1 - assert 'product="app-protect-dos"' in log_contents assert f'vs_name="{test_namespace}/dos-protected/name"' in log_contents assert "bad_actor" in log_contents