Skip to content

Commit 9c44f7f

Browse files
authored
[core] Fix test_threaded_actor flaky on mac (#51602)
It would fail on ``` FAILED python/ray/tests/test_threaded_actor.py::test_threaded_actor_basic - ValueError: When connecting to an existing cluster, num_cpus and num_gpus must not be provided. ``` so instead just creating the cluster directly. Signed-off-by: dayshah <dhyey2019@gmail.com>
1 parent 358909f commit 9c44f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ray/tests/test_threaded_actor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def ensure_cpu_returned(expected_cpus):
1616
)
1717

1818

19-
def test_threaded_actor_basic(shutdown_only):
19+
def test_threaded_actor_basic(ray_start_cluster):
2020
"""Test the basic threaded actor."""
2121
ray.init(num_cpus=1)
2222

@@ -45,7 +45,7 @@ def get_all(self):
4545
ensure_cpu_returned(1)
4646

4747

48-
def test_threaded_actor_api_thread_safe(shutdown_only):
48+
def test_threaded_actor_api_thread_safe(ray_start_cluster):
4949
"""Test if Ray APIs are thread safe
5050
when they are used within threaded actor.
5151
"""

0 commit comments

Comments
 (0)