tests: the lookup of who holds a port waits 30 s for ss/netstat

This commit is contained in:
feder-cr committed 2026-11-16 02:39:13 +01:00
1 parent 3c102d052a
commit 0f48b9e40e
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ def who_holds(port: int) -> str:
"""What the machine says about the sockets of `port` (ss, or netstat), for the message of a picker or a trap that found no number."""
for command in (["ss", "-H", "-lntup"], ["netstat", "-lntup"]):
try:
done = subprocess.run(command, capture_output=True, text=True, timeout=10)
done = subprocess.run(command, capture_output=True, text=True, timeout=30)
except (OSError, subprocess.SubprocessError):
continue
lines = [line for line in done.stdout.splitlines() if (":%d " % port) in line]