mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-08-25 07:37:14 +00:00
test tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user