Fix some flaky tests (#4535)

This commit is contained in:
Hao Chen
2019-04-03 08:57:11 +08:00
committed by Robert Nishihara
parent db4cf24636
commit 23404f7bcf
3 changed files with 18 additions and 114 deletions
+2 -2
View File
@@ -143,7 +143,7 @@ def test_actor_broadcast(ray_start_cluster_with_resource):
args=[],
kwargs={},
num_cpus=0.01,
resources={str(i % num_nodes): 1}) for i in range(100)
resources={str(i % num_nodes): 1}) for i in range(30)
]
# Wait for the actors to start up.
@@ -152,7 +152,7 @@ def test_actor_broadcast(ray_start_cluster_with_resource):
object_ids = []
# Broadcast a large object to all actors.
for _ in range(10):
for _ in range(5):
x_id = ray.put(np.zeros(10**7, dtype=np.uint8))
object_ids.append(x_id)
# Pass the object into a method for every actor.