Skip to content

Commit 9e2724f

Browse files
authored
test(ci): allow slower Windows Hub cold starts (#7273)
1 parent 9593d16 commit 9e2724f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/e2e/test_hub_local_runtime.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
import pytest
1616

1717

18+
_HUB_READY_TIMEOUT_SECONDS = 120.0
19+
20+
1821
def _allocate_port() -> int:
1922
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as server:
2023
server.bind(("127.0.0.1", 0))
@@ -25,7 +28,7 @@ def _wait_for_hub(
2528
client: httpx.Client,
2629
process: subprocess.Popen[Any],
2730
) -> None:
28-
deadline = time.monotonic() + 60
31+
deadline = time.monotonic() + _HUB_READY_TIMEOUT_SECONDS
2932
last_error = "Hub did not respond"
3033
while time.monotonic() < deadline:
3134
if process.poll() is not None:

0 commit comments

Comments
 (0)