diff --git a/changedetectionio/tests/util.py b/changedetectionio/tests/util.py index ed7269de..7f8222c3 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 dcb9dbe7..1c488547 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)