diff --git a/changedetectionio/tests/test_filter_failure_notification.py b/changedetectionio/tests/test_filter_failure_notification.py index c8c7ec959..e70461f7e 100644 --- a/changedetectionio/tests/test_filter_failure_notification.py +++ b/changedetectionio/tests/test_filter_failure_notification.py @@ -105,9 +105,10 @@ def test_check_notification(client, live_server): os.unlink("test-datastore/notification.txt") set_response_with_filter() - for i in range(0, 5): + for i in range(0, App._FILTER_FAILURE_THRESHOLD_ATTEMPTS_DEFAULT): client.get(url_for("form_watch_checknow"), follow_redirects=True) time.sleep(3) + # It should have sent a notification, but.. assert os.path.isfile("test-datastore/notification.txt") # but it should not contain the info about the failed filter