mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:11:40 +03:00
pytest: socksd startup delay
Add a small delay after the startup of the danted socks daemon to give it more time to become responsive. Closes #19895
This commit is contained in:
parent
9711c986ba
commit
44e64919cf
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
from typing import Generator
|
||||
import pytest
|
||||
|
||||
|
|
@ -42,6 +43,7 @@ class TestSocks:
|
|||
def danted(self, env: Env) -> Generator[Dante, None, None]:
|
||||
danted = Dante(env=env)
|
||||
assert danted.initial_start()
|
||||
time.sleep(1)
|
||||
yield danted
|
||||
danted.stop()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue