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
8 changes: 6 additions & 2 deletions python/ray/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,9 @@ def setup_cluster_with_token_auth(cleanup_auth_token_env):
reset_auth_token_state()

cluster = Cluster()
cluster.add_node()
# Use dynamic port to avoid port conflicts on Windows where sockets
# linger in TIME_WAIT state between tests
cluster.add_node(dashboard_agent_listen_port=find_free_port())

try:
context = ray.init(address=cluster.address)
Expand All @@ -1565,7 +1567,9 @@ def setup_cluster_without_token_auth(cleanup_auth_token_env):
reset_auth_token_state()

cluster = Cluster()
cluster.add_node()
# Use dynamic port to avoid port conflicts on Windows where sockets
# linger in TIME_WAIT state between tests
cluster.add_node(dashboard_agent_listen_port=find_free_port())

try:
context = ray.init(address=cluster.address)
Expand Down