[Serve] Stop Ray in test_serve_head.py fixture (#25893)

This commit is contained in:
shrekris-anyscale 2022-06-21 11:28:07 -07:00 committed by GitHub
parent ad12f0cd02
commit 3d6a5450c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@ STATUS_URL = "http://localhost:8265/api/serve/deployments/status"
@pytest.fixture
def ray_start_stop():
subprocess.check_output(["ray", "stop", "--force"])
subprocess.check_output(["ray", "start", "--head"])
yield
subprocess.check_output(["ray", "stop", "--force"])