At least one site should resolve

main
Bob Mottram 2022-03-04 15:28:55 +00:00
parent 2914be4288
commit 2e13ca7143
1 changed files with 4 additions and 2 deletions

View File

@ -3807,8 +3807,10 @@ def _test_jsonld():
def _test_site_active():
print('test_site_is_active')
timeout = 10
assert site_is_active('https://archive.org', timeout)
assert site_is_active('https://mastodon.social', timeout)
# at least one site should resolve
if not site_is_active('https://archive.org', timeout):
if not site_is_active('https://wikipedia.org', timeout):
assert site_is_active('https://mastodon.social', timeout)
assert not site_is_active('https://notarealwebsite.a.b.c', timeout)