From ccd6f1cb3f8a97e61cafe4986543741c276fe9b9 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 7 Jun 2024 09:52:53 +0200 Subject: [PATCH] hmm --- changedetectionio/tests/util.py | 1 + changedetectionio/update_worker.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changedetectionio/tests/util.py b/changedetectionio/tests/util.py index ed7269ded..7f8222c3b 100644 --- a/changedetectionio/tests/util.py +++ b/changedetectionio/tests/util.py @@ -126,6 +126,7 @@ def wait_for_all_checks(client): attempt = 0 while attempt < 60: time.sleep(1) + # should be greater than update_worker.py: self.app.config.exit.wait(0.5) res = client.get(url_for("index")) if not b'Checking now' in res.data: break diff --git a/changedetectionio/update_worker.py b/changedetectionio/update_worker.py index dcb9dbe75..1c4885476 100644 --- a/changedetectionio/update_worker.py +++ b/changedetectionio/update_worker.py @@ -543,4 +543,4 @@ class update_worker(threading.Thread): # Give the CPU time to interrupt time.sleep(0.1) - self.app.config.exit.wait(1) + self.app.config.exit.wait(0.5)