diff --git a/changedetectionio/tests/util.py b/changedetectionio/tests/util.py index 6942e3200..7fbe0b01a 100644 --- a/changedetectionio/tests/util.py +++ b/changedetectionio/tests/util.py @@ -140,7 +140,6 @@ def wait_for_all_checks(client=None): """ from changedetectionio.flask_app import update_q as global_update_q from changedetectionio import worker_handler - empty_since = None attempt = 0 max_attempts = 150 # Still reasonable upper bound @@ -150,9 +149,9 @@ def wait_for_all_checks(client=None): if attempt < 10: time.sleep(0.1) # Very fast initial checks elif attempt < 30: - time.sleep(0.2) # Medium speed + time.sleep(0.3) # Medium speed else: - time.sleep(0.4) # Slower for persistent issues + time.sleep(0.8) # Slower for persistent issues q_length = global_update_q.qsize() running_uuids = worker_handler.get_running_uuids() @@ -167,7 +166,7 @@ def wait_for_all_checks(client=None): empty_since = None attempt += 1 - time.sleep(0.1) + time.sleep(0.15) # Replaced by new_live_server_setup and calling per function scope in conftest.py def live_server_setup(live_server):