Merge pull request #1943 from ogayot/curl-timeout
tests: terminate curl processes on timeout
This commit is contained in:
commit
cc15d645f4
|
@ -39,6 +39,8 @@ async def test_connect(cmd: List[str]) -> bool:
|
|||
try:
|
||||
await asyncio.wait_for(proc.wait(), 10)
|
||||
except asyncio.TimeoutError:
|
||||
proc.terminate()
|
||||
await proc.wait()
|
||||
return False
|
||||
return proc.returncode == 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue