Skip to content

Commit 71bc191

Browse files
committed
add timeout
1 parent 54989ad commit 71bc191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests_unit/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_run_subprocess_cmd(size_kb, end):
169169
command = [python_exe, "-c", f"print('a' * {size_kb} * 1024, end='{end}')"]
170170

171171
exit_code, output = run_subprocess_cmd(
172-
command, capture_output=True, strip_errors=True
172+
command, capture_output=True, strip_errors=True, timeout=1
173173
)
174174
assert exit_code == 0
175175
assert len(output.decode()) == size_kb * 1024 + (1 if end else 0)

0 commit comments

Comments
 (0)