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

Function stop_test_server

tests/test_utils.py:65–72  ·  view source on GitHub ↗

Stop the test server

(proc: subprocess.Popen)

Source from the content-addressed store, hash-verified

63 return proc
64
65def stop_test_server(proc: subprocess.Popen):
66 """Stop the test server"""
67 try:
68 proc.terminate()
69 proc.wait(timeout=5)
70 except subprocess.TimeoutExpired:
71 proc.kill()
72 proc.wait()
73
74def get_simple_test_messages():
75 """Get simple test messages for basic validation"""

Callers 2

setUpClassMethod · 0.90
tearDownClassMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected