add timeout

This commit is contained in:
Brad Warren 2022-10-06 19:26:22 -07:00
parent e4e93ba8ff
commit 71f7e1b563
2 changed files with 2 additions and 0 deletions

View file

@ -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',

View file

@ -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]