We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9967278 commit a6f3c83Copy full SHA for a6f3c83
test_http_agentic_tools.py
@@ -139,9 +139,14 @@
139
def check_server():
140
"""Check if HTTP server is running."""
141
try:
142
- # Health endpoint returns plain text "OK"
143
- response = requests.get(f"{BASE_URL}/health", timeout=2)
144
- if response.status_code == 200 and response.text.strip() == "OK":
+ # Health endpoint requires Accept: text/event-stream header
+ response = requests.get(
+ f"{BASE_URL}/health",
145
+ headers={"Accept": "text/event-stream"},
146
+ timeout=2
147
+ )
148
+ # Health returns "OK" as plain text even with SSE header
149
+ if response.status_code == 200 and "OK" in response.text:
150
print(f"✓ Server is running at {BASE_URL}")
151
return True
152
else:
0 commit comments