mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 01:23:10 +08:00
Rename redis-port to port and add default (#8406)
This commit is contained in:
@@ -360,7 +360,7 @@ def test_calling_start_ray_head(call_ray_stop_only):
|
||||
subprocess.check_output(["ray", "stop"])
|
||||
|
||||
# Test starting Ray with a redis port specified.
|
||||
subprocess.check_output(["ray", "start", "--head", "--redis-port", "6379"])
|
||||
subprocess.check_output(["ray", "start", "--head"])
|
||||
subprocess.check_output(["ray", "stop"])
|
||||
|
||||
# Test starting Ray with a node IP address specified.
|
||||
@@ -398,10 +398,9 @@ def test_calling_start_ray_head(call_ray_stop_only):
|
||||
|
||||
# Test starting Ray with all arguments specified.
|
||||
subprocess.check_output([
|
||||
"ray", "start", "--head", "--redis-port", "6379",
|
||||
"--redis-shard-ports", "6380,6381,6382", "--object-manager-port",
|
||||
"12345", "--num-cpus", "2", "--num-gpus", "0",
|
||||
"--redis-max-clients", "100", "--resources", "{\"Custom\": 1}"
|
||||
"ray", "start", "--head", "--redis-shard-ports", "6380,6381,6382",
|
||||
"--object-manager-port", "12345", "--num-cpus", "2", "--num-gpus",
|
||||
"0", "--redis-max-clients", "100", "--resources", "{\"Custom\": 1}"
|
||||
])
|
||||
subprocess.check_output(["ray", "stop"])
|
||||
|
||||
@@ -438,10 +437,8 @@ def test_calling_start_ray_head(call_ray_stop_only):
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"call_ray_start", [
|
||||
"ray start --head --num-cpus=1 " +
|
||||
"--node-ip-address=localhost --redis-port=6379"
|
||||
],
|
||||
"call_ray_start",
|
||||
["ray start --head --num-cpus=1 " + "--node-ip-address=localhost"],
|
||||
indirect=True)
|
||||
def test_using_hostnames(call_ray_start):
|
||||
ray.init(node_ip_address="localhost", address="localhost:6379")
|
||||
|
||||
Reference in New Issue
Block a user