Skip to content

Commit

Permalink
Put an end time for timeout command just as a precaution
Browse files Browse the repository at this point in the history
  • Loading branch information
kmvanbrunt committed Nov 13, 2019
1 parent 640d723 commit d33c2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d33c2dc

Please sign in to comment.