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:
Stefan Eissing 2025-12-09 12:54:00 +01:00 committed by Daniel Stenberg
parent 9711c986ba
commit 44e64919cf
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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()