diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-11-12 20:10:14 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-11-12 20:10:14 -0500 |
commit | d33c2dcba7852234657cca6bce5aed584bcc9e2a (patch) | |
tree | 604814789c4bf7d8d3e655dc99f3c0f29c8fc51d /tests/test_utils.py | |
parent | 640d723f02dd791a66c76439703d622d758fa702 (diff) | |
download | cmd2-git-d33c2dcba7852234657cca6bce5aed584bcc9e2a.tar.gz |
Put an end time for timeout command just as a precaution
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r-- | tests/test_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index 312acdf0..52adc7cd 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -230,11 +230,11 @@ def pr_none(): # Start a long running process so we have time to run tests on it before it finishes # Put the new process into a separate group so signals sent to it won't interfere with this process if sys.platform.startswith('win'): - command = 'timeout -t -1 /nobreak' + command = 'timeout -t 5 /nobreak' creationflags = subprocess.CREATE_NEW_PROCESS_GROUP start_new_session = False else: - command = 'sleep 10' + command = 'sleep 5' creationflags = 0 start_new_session = True |