From a1839a92d4bc24ff4e10ddb425e39bb0c18f4685 Mon Sep 17 00:00:00 2001 From: Venktesh Date: Thu, 30 May 2024 12:32:12 +0100 Subject: [PATCH] add wait --- tests/suite/test_dos.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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