Skip to content

Commit

Permalink
Fix ray_env fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
s5u13b committed Feb 20, 2025
1 parent ea33aab commit 01c6e5f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,9 @@ def cleanup_ray_env_func():

@pytest.fixture
def ray_env():
subprocess.run(["ray", "stop"], check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
time.sleep(3.0)
subprocess.run(["ray", "start", "--head", "--disable-usage-stats", "--port=6379"], check=False,
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
time.sleep(3.0)
ray.init(namespace="llumnix", ignore_reinit_error=True)
yield
cleanup_ray_env_func()
time.sleep(3.0)

def backup_error_log(func_name):
curr_time = datetime.now().strftime('%Y_%m_%d_%H_%M_%S')
Expand Down

0 comments on commit 01c6e5f

Please sign in to comment.