Skip to content

Commit 410ad87

Browse files
planet.jeroenclaude
andcommitted
fix(tests): increase HTTP API timeout from 10s to 30s
Prevents spurious TimeoutError in coverage/analysis tests when running under full suite CPU load. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f3761d7 commit 410ad87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_viewer_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,15 +538,15 @@ def _start_server(port):
538538
return server, mgr
539539

540540

541-
def _api_request(port, method, path, body=None):
541+
def _api_request(port, method, path, body=None, timeout=30):
542542
"""Make HTTP request to server, return (status, parsed_json_or_text)."""
543543
url = f"http://localhost:{port}{path}"
544544
data = json.dumps(body).encode() if body is not None else None
545545
req = urllib.request.Request(url, data=data, method=method)
546546
if data is not None:
547547
req.add_header("Content-Type", "application/json")
548548
try:
549-
resp = urllib.request.urlopen(req, timeout=10)
549+
resp = urllib.request.urlopen(req, timeout=timeout)
550550
content = resp.read().decode()
551551
try:
552552
return resp.status, json.loads(content)

0 commit comments

Comments
 (0)