diff --git a/certbot-ci/src/certbot_integration_tests/certbot_tests/test_main.py b/certbot-ci/src/certbot_integration_tests/certbot_tests/test_main.py index 1f8f56121..65f70adac 100644 --- a/certbot-ci/src/certbot_integration_tests/certbot_tests/test_main.py +++ b/certbot-ci/src/certbot_integration_tests/certbot_tests/test_main.py @@ -6,7 +6,6 @@ from os.path import join import re import shutil import subprocess -import time from typing import Generator from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve @@ -960,9 +959,6 @@ def test_ocsp_status_live(context: IntegrationTestsContext) -> None: # OSCP 2: Check live certificate OCSP status (REVOKED) context.certbot(['revoke', '--cert-name', cert, '--no-delete-after-revoke']) - # Sometimes in oldest tests (using openssl binary and not cryptography), the OCSP status is - # not seen immediately by Certbot as invalid. Waiting few seconds solves this transient issue. - time.sleep(5) stdout, _ = context.certbot(['certificates']) assert stdout.count('INVALID') == 1, 'Expected {0} to be INVALID'.format(cert)