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

Function stop_test_server

tests/test_utils.py:96–103  ·  view source on GitHub ↗

Stop the test server

(proc: subprocess.Popen)

Source from the content-addressed store, hash-verified

94 raise RuntimeError(error_msg)
95
96def stop_test_server(proc: subprocess.Popen):
97 """Stop the test server"""
98 try:
99 proc.terminate()
100 proc.wait(timeout=5)
101 except subprocess.TimeoutExpired:
102 proc.kill()
103 proc.wait()
104
105def is_server_running(port: int = DEFAULT_PORT) -> bool:
106 """Check if optillm server is running on the given port"""

Callers 1

optillm_serverFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected