File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -477,12 +477,19 @@ def kill():
477
477
proc .kill = kill
478
478
returncode = transport .get_returncode ()
479
479
transport .close ()
480
- await transport ._wait ()
480
+ await asyncio . wait_for ( transport ._wait (), 5 )
481
481
return (returncode , kill_called )
482
482
483
483
# Ignore "Close running child process: kill ..." log
484
484
with test_utils .disable_logger ():
485
- returncode , killed = self .loop .run_until_complete (kill_running ())
485
+ try :
486
+ returncode , killed = self .loop .run_until_complete (
487
+ kill_running ()
488
+ )
489
+ except asyncio .TimeoutError :
490
+ self .skipTest (
491
+ "Timeout failure on waiting for subprocess stopping"
492
+ )
486
493
self .assertIsNone (returncode )
487
494
488
495
# transport.close() must kill the process if it is still running
You can’t perform that action at this time.
0 commit comments