Skip to content

Commit ca1cace

Browse files
committed
test: avoid premature cursor wrap e2e timeout
1 parent 9d4598a commit ca1cace

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

e2e/wrap/run.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,10 @@ def verify_cursor_wrap(base_env: dict[str, str], project_dir: Path) -> None:
685685
errors="replace",
686686
)
687687
try:
688-
output = wait_for_output(proc, "Press Ctrl+C to stop the proxy.", timeout=30)
688+
# _start_proxy waits up to 45s before surfacing proxy log context. Keep
689+
# this parent-process wait longer so slow container startup is not
690+
# mistaken for a Cursor wrap failure.
691+
output = wait_for_output(proc, "Press Ctrl+C to stop the proxy.", timeout=75)
689692
assert_true(
690693
f"http://127.0.0.1:{port}/v1" in output,
691694
"Cursor wrap should print the OpenAI base URL override",
@@ -694,7 +697,7 @@ def verify_cursor_wrap(base_env: dict[str, str], project_dir: Path) -> None:
694697
f"http://127.0.0.1:{port}" in output,
695698
"Cursor wrap should print the Anthropic base URL override",
696699
)
697-
wait_for_http(f"http://127.0.0.1:{port}/health", timeout=15)
700+
wait_for_http(f"http://127.0.0.1:{port}/health", timeout=30)
698701
cursorrules = project_dir / ".cursorrules"
699702
assert_true(cursorrules.exists(), "Cursor wrap should create .cursorrules")
700703
assert_true(

0 commit comments

Comments
 (0)