Check AF_UNIX path length (#7951)

This commit is contained in:
mehrdadn
2020-04-13 09:30:01 -07:00
committed by GitHub
parent c222d64ca1
commit 1b0f6fd558
3 changed files with 16 additions and 0 deletions
+6
View File
@@ -72,6 +72,12 @@ def test_tempdir_commandline():
ignore_errors=True)
def test_tempdir_long_path():
temp_dir = os.path.join(ray.utils.get_user_temp_dir(), "z" * 108)
with pytest.raises(OSError):
ray.init(temp_dir=temp_dir) # path should be too long
def test_raylet_socket_name(shutdown_only):
ray.init(
raylet_socket_name=os.path.join(ray.utils.get_user_temp_dir(),