Stop the test server
(proc: subprocess.Popen)
| 94 | raise RuntimeError(error_msg) |
| 95 | |
| 96 | def 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 | |
| 105 | def is_server_running(port: int = DEFAULT_PORT) -> bool: |
| 106 | """Check if optillm server is running on the given port""" |