Skip to content

Commit 936500a

Browse files
authored
Add 60s timeout for each test (#761)
1 parent 9f68fc8 commit 936500a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ mypy:
4141
mypy --no-warn-redundant-casts --no-warn-unused-ignores examples/*.py zeroconf
4242

4343
test:
44-
pytest -v tests
44+
pytest --timeout=60 -v tests
4545

4646
test_coverage:
47-
pytest -v --cov=zeroconf --cov-branch --cov-report html --cov-report term-missing tests
47+
pytest --timeout=60 -v --cov=zeroconf --cov-branch --cov-report html --cov-report term-missing tests
4848

4949
autopep8:
5050
autopep8 --max-line-length=$(MAX_LINE_LENGTH) -i setup.py examples zeroconf

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ pylint
1313
pytest
1414
pytest-asyncio
1515
pytest-cov
16+
pytest-timeout

0 commit comments

Comments
 (0)