diff --git a/changedetectionio/tests/test_errorhandling.py b/changedetectionio/tests/test_errorhandling.py index 7b4a6634..8ca5b58d 100644 --- a/changedetectionio/tests/test_errorhandling.py +++ b/changedetectionio/tests/test_errorhandling.py @@ -76,7 +76,8 @@ def test_DNS_errors(client, live_server, measure_memory_usage, datastore_path): b"nodename nor servname provided" in res.data or b"Temporary failure in name resolution" in res.data or b"Failed to establish a new connection" in res.data or - b"Connection error occurred" in res.data + b"Connection error occurred" in res.dataa or + b"net::ERR_NAME_NOT_RESOLVED" in res.data ) assert found_name_resolution_error # Should always record that we tried @@ -132,7 +133,8 @@ def test_low_level_errors_clear_correctly(client, live_server, measure_memory_us b"nodename nor servname provided" in res.data or b"Temporary failure in name resolution" in res.data or b"Failed to establish a new connection" in res.data or - b"Connection error occurred" in res.data + b"Connection error occurred" in res.dataa or + b"net::ERR_NAME_NOT_RESOLVED" in res.data ) assert not found_name_resolution_error diff --git a/changedetectionio/tests/test_notification.py b/changedetectionio/tests/test_notification.py index 5f8d9004..96b6a62a 100644 --- a/changedetectionio/tests/test_notification.py +++ b/changedetectionio/tests/test_notification.py @@ -474,7 +474,8 @@ def test_global_send_test_notification(client, live_server, measure_memory_usage b"nodename nor servname provided" in res.data or b"Temporary failure in name resolution" in res.data or b"Failed to establish a new connection" in res.data or - b"Connection error occurred" in res.data + b"Connection error occurred" in res.data or + b"net::ERR_NAME_NOT_RESOLVED" in res.data ) client.get( diff --git a/changedetectionio/tests/test_notification_errors.py b/changedetectionio/tests/test_notification_errors.py index 12da6d56..fa3ca46d 100644 --- a/changedetectionio/tests/test_notification_errors.py +++ b/changedetectionio/tests/test_notification_errors.py @@ -71,7 +71,8 @@ def test_check_notification_error_handling(client, live_server, measure_memory_u b"nodename nor servname provided" in res.data or b"Temporary failure in name resolution" in res.data or b"Failed to establish a new connection" in res.data or - b"Connection error occurred" in res.data + b"Connection error occurred" in res.dataa or + b"net::ERR_NAME_NOT_RESOLVED" in res.data ) assert found_name_resolution_error