Skip to content

Commit 110a148

Browse files
committed
Add timeout to all pytest.
1 parent 16c6eca commit 110a148

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ pylint==2.14.5
6969
pytest==7.1.2
7070
pytest-asyncio==0.18.3
7171
pytest-cov==3.0.0
72+
pytest-timeout==2.1.0
7273
tox==3.25.0

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ envlist = py{38,39,310,py38}
1010
[testenv]
1111
deps = -r requirements.txt
1212
commands =
13-
pytest {posargs:--cov=pymodbus --cov=test --cov-report=term-missing --cov-report=xml -v --full-trace}
13+
pytest {posargs:--cov=pymodbus --cov=test --cov-report=term-missing --cov-report=xml -v --full-trace --timeout=5}
1414
passenv =
1515
INCLUDE
1616
LIB

0 commit comments

Comments
 (0)