Skip to content

Commit d33c2dc

Browse files
committed
Put an end time for timeout command just as a precaution
1 parent 640d723 commit d33c2dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,11 @@ def pr_none():
230230
# Start a long running process so we have time to run tests on it before it finishes
231231
# Put the new process into a separate group so signals sent to it won't interfere with this process
232232
if sys.platform.startswith('win'):
233-
command = 'timeout -t -1 /nobreak'
233+
command = 'timeout -t 5 /nobreak'
234234
creationflags = subprocess.CREATE_NEW_PROCESS_GROUP
235235
start_new_session = False
236236
else:
237-
command = 'sleep 10'
237+
command = 'sleep 5'
238238
creationflags = 0
239239
start_new_session = True
240240

0 commit comments

Comments
 (0)