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 af23cec commit 9967278Copy full SHA for 9967278
test_http_agentic_tools.py
@@ -139,13 +139,9 @@
139
def check_server():
140
"""Check if HTTP server is running."""
141
try:
142
- # Health endpoint requires Accept: text/event-stream header
143
- response = requests.get(
144
- f"{BASE_URL}/health",
145
- headers={"Accept": "text/event-stream"},
146
- timeout=2
147
- )
148
- if response.status_code == 200:
+ # Health endpoint returns plain text "OK"
+ response = requests.get(f"{BASE_URL}/health", timeout=2)
+ if response.status_code == 200 and response.text.strip() == "OK":
149
print(f"✓ Server is running at {BASE_URL}")
150
return True
151
else:
0 commit comments