Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions python/ray/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,15 @@ def random_ascii_file(request):
yield fp


# Clean up Ray address file before the test run starts, since sometimes bazel test times out
# and kill the test process, without cleaning up the Ray address file.
def pytest_sessionstart(session):
"""Called after the Session object has been created and before performing collection and entering the run test loop."""

# Delete the cluster address file just in case.
ray._common.utils.reset_ray_address()


"""
pytest httpserver related test fixtures
"""
Expand Down