From f3c6536fbcd55c2b57fafe760b874cad4522002b Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 9 May 2025 09:43:19 +0200 Subject: [PATCH] tweak timing --- changedetectionio/tests/util.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/changedetectionio/tests/util.py b/changedetectionio/tests/util.py index 0678e5ed..c4d53782 100644 --- a/changedetectionio/tests/util.py +++ b/changedetectionio/tests/util.py @@ -140,11 +140,11 @@ def wait_for_all_checks(client=None): i=0 max_attempts = 60 - wait_between_attempts = 2 - required_empty_duration = 2 + wait_between_attempts = 1 + required_empty_duration = 0.6 logger = logging.getLogger() - time.sleep(1.2) + time.sleep(0.5) empty_since = None @@ -152,7 +152,7 @@ def wait_for_all_checks(client=None): q_length = global_update_q.qsize() # Check if any threads are still processing - time.sleep(1.2) + time.sleep(wait_between_attempts) any_threads_busy = any(t.current_uuid for t in running_update_threads) @@ -175,7 +175,7 @@ def wait_for_all_checks(client=None): attempt += 1 - time.sleep(1.2) + time.sleep(wait_between_attempts) def live_server_setup(live_server):