Get baseline 100% clean coverage (#1553)
This commit is contained in:
parent
da4fce2195
commit
89e9c43acf
1 changed files with 1032 additions and 1084 deletions
|
|
@ -4,7 +4,7 @@ import socket
|
|||
import time
|
||||
|
||||
|
||||
def wait_for_server(port: int, timeout: float = 5.0) -> None:
|
||||
def wait_for_server(port: int, timeout: float = 20.0) -> None:
|
||||
"""Wait for server to be ready to accept connections.
|
||||
|
||||
Polls the server port until it accepts connections or timeout is reached.
|
||||
|
|
@ -28,4 +28,4 @@ def wait_for_server(port: int, timeout: float = 5.0) -> None:
|
|||
except (ConnectionRefusedError, OSError):
|
||||
# Server not ready yet, retry quickly
|
||||
time.sleep(0.01)
|
||||
raise TimeoutError(f"Server on port {port} did not start within {timeout} seconds")
|
||||
raise TimeoutError(f"Server on port {port} did not start within {timeout} seconds") # pragma: no cover
|
||||
|
|
|
|||
Loading…
Reference in a new issue