]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
pytest: socksd startup delay
authorStefan Eissing <stefan@eissing.org>
Tue, 9 Dec 2025 11:54:00 +0000 (12:54 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 9 Dec 2025 15:03:38 +0000 (16:03 +0100)
Add a small delay after the startup of the danted socks daemon to
give it more time to become responsive.

Closes #19895

tests/http/test_40_socks.py

index 8c6a81f4f6ad118f5a1338d3a76f541b8729ac28..1c844b82aae8e9b48fd4f17a0e1060ba4d2e0a47 100644 (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()