about summary refs log tree commit diff
path: root/tst/test_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'tst/test_check.py')
-rw-r--r--tst/test_check.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/tst/test_check.py b/tst/test_check.py
index 23be6f5..c5516e2 100644
--- a/tst/test_check.py
+++ b/tst/test_check.py
@@ -52,16 +52,12 @@ def failed_to_get_cert(summary):
 async def get_cert_summary(netloc, after, ca):
     """Fetch TLS certificate expiration summary for netloc."""
     loop = get_running_loop()
-    while True:
-        output = StringIO()
-        await loop.run_in_executor(None, check, [netloc], after, output, ca)
-        if not output.getvalue():
-            return None
-        summary, = map(parse_summary, output.getvalue().splitlines())
-        if 'Connection refused' in summary[-1]:  # pragma: no cover
-            assert failed_to_get_cert(summary)
-            continue
-        return summary
+    output = StringIO()
+    await loop.run_in_executor(None, check, [netloc], after, output, ca)
+    if not output.getvalue():
+        return None
+    summary, = map(parse_summary, output.getvalue().splitlines())
+    return summary
 
 
 @mark.parametrize('domain', ['localhost'])