mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[Serve] Stop Ray in test_serve_head.py fixture (#25893)
This commit is contained in:
parent
ad12f0cd02
commit
3d6a5450c9
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ STATUS_URL = "http://localhost:8265/api/serve/deployments/status"
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def ray_start_stop():
|
def ray_start_stop():
|
||||||
|
subprocess.check_output(["ray", "stop", "--force"])
|
||||||
subprocess.check_output(["ray", "start", "--head"])
|
subprocess.check_output(["ray", "start", "--head"])
|
||||||
yield
|
yield
|
||||||
subprocess.check_output(["ray", "stop", "--force"])
|
subprocess.check_output(["ray", "stop", "--force"])
|
||||||
|
|
Loading…
Add table
Reference in a new issue