[Core] Custom socket name (#9766)

* fix issues

* hot fixes

* test

* test

* socket name change only
This commit is contained in:
Alex Wu
2020-07-29 13:19:41 -07:00
committed by GitHub
parent e6696b2533
commit 6e294dd90f
2 changed files with 10 additions and 5 deletions
+8 -1
View File
@@ -421,7 +421,14 @@ def test_socket_dir_not_existing(shutdown_only):
"tests", random_name)
temp_raylet_socket_name = os.path.join(temp_raylet_socket_dir,
"raylet_socket")
ray.init(num_cpus=1, raylet_socket_name=temp_raylet_socket_name)
ray.init(num_cpus=2, raylet_socket_name=temp_raylet_socket_name)
@ray.remote
def foo(x):
time.sleep(1)
return 2 * x
ray.get([foo.remote(i) for i in range(2)])
def test_raylet_is_robust_to_random_messages(ray_start_regular):