From 71f7e1b563a3cd97c11addede6ae470f7c9afa45 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Thu, 6 Oct 2022 19:26:22 -0700 Subject: [PATCH] add timeout --- certbot-ci/setup.py | 1 + tox.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/certbot-ci/setup.py b/certbot-ci/setup.py index 728c6c707..f0b89780e 100644 --- a/certbot-ci/setup.py +++ b/certbot-ci/setup.py @@ -18,6 +18,7 @@ install_requires = [ 'pyopenssl', 'pytest', 'pytest-cov', + 'pytest-timeout', # This version is needed for "worker" attributes we currently use like # "workerinput". See https://github.com/pytest-dev/pytest-xdist/pull/268. 'pytest-xdist>=1.22.1', diff --git a/tox.ini b/tox.ini index 0670b7ee2..bf57afc49 100644 --- a/tox.ini +++ b/tox.ini @@ -41,6 +41,7 @@ commands = # https://github.com/certbot/certbot/issues/7745. recreate = true setenv = + PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:--timeout=300} PYTHONHASHSEED = 0 [testenv:oldest]