MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / is_server_running

Function is_server_running

tests/test_utils.py:105–111  ·  view source on GitHub ↗

Check if optillm server is running on the given port

(port: int = DEFAULT_PORT)

Source from the content-addressed store, hash-verified

103 proc.wait()
104
105def is_server_running(port: int = DEFAULT_PORT) -> bool:
106 """Check if optillm server is running on the given port"""
107 try:
108 response = requests.get(f"http://localhost:{port}/health", timeout=2)
109 return response.status_code == 200
110 except:
111 return False
112
113def get_integration_config(port: int = DEFAULT_PORT) -> Config:
114 """Get config for integration tests with optillm"""

Callers 1

optillm_serverFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected