a0700e2f86602b8ab81e8d54c530771ca3f6f3a8,python/ray/tests/test_tempfile.py,,test_conn_cluster,#,10

Before Change



    // raylet_socket_name
    with pytest.raises(Exception) as exc_info:
        ray.init(
            address="127.0.0.1:6379",
            raylet_socket_name="/tmp/this_should_fail")
    assert exc_info.value.args[0] == (
        "When connecting to an existing cluster, "
        "raylet_socket_name must not be provided.")

After Change


    with pytest.raises(Exception) as exc_info:
        ray.init(
            address="127.0.0.1:6379",
            plasma_store_socket_name=os.path.join(
                ray.utils.get_user_temp_dir(), "this_should_fail"))
    assert exc_info.value.args[0] == (
        "When connecting to an existing cluster, "
        "plasma_store_socket_name must not be provided.")

    // raylet_socket_name
    with pytest.raises(Exception) as exc_info:
        ray.init(
            address="127.0.0.1:6379",
            raylet_socket_name=os.path.join(ray.utils.get_user_temp_dir(),
                                            "this_should_fail"))
    assert exc_info.value.args[0] == (
        "When connecting to an existing cluster, "
        "raylet_socket_name must not be provided.")

    // temp_dir
    with pytest.raises(Exception) as exc_info:
        ray.init(
            address="127.0.0.1:6379",
            temp_dir=os.path.join(ray.utils.get_user_temp_dir(),
                                  "this_should_fail"))
    assert exc_info.value.args[0] == (
        "When connecting to an existing cluster, "
        "temp_dir must not be provided.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 14

Instances


Project Name: ray-project/ray
Commit Name: a0700e2f86602b8ab81e8d54c530771ca3f6f3a8
Time: 2020-03-16
Author: mehrdadn@users.noreply.github.com
File Name: python/ray/tests/test_tempfile.py
Class Name:
Method Name: test_conn_cluster


Project Name: ray-project/ray
Commit Name: a0700e2f86602b8ab81e8d54c530771ca3f6f3a8
Time: 2020-03-16
Author: mehrdadn@users.noreply.github.com
File Name: python/ray/tests/test_tempfile.py
Class Name:
Method Name: test_raylet_socket_name


Project Name: ray-project/ray
Commit Name: a0700e2f86602b8ab81e8d54c530771ca3f6f3a8
Time: 2020-03-16
Author: mehrdadn@users.noreply.github.com
File Name: python/ray/tests/test_tempfile.py
Class Name:
Method Name: test_conn_cluster


Project Name: ray-project/ray
Commit Name: a0700e2f86602b8ab81e8d54c530771ca3f6f3a8
Time: 2020-03-16
Author: mehrdadn@users.noreply.github.com
File Name: python/ray/tests/test_tempfile.py
Class Name:
Method Name: test_temp_plasma_store_socket