test tweaks

This commit is contained in:
dgtlmoon
2026-03-26 18:25:34 +01:00
parent f74822009a
commit 34f4fd9baa
3 changed files with 8 additions and 4 deletions
@@ -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
+2 -1
View File
@@ -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