mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 01:07:30 +08:00
Fix some flaky tests (#4535)
This commit is contained in:
committed by
Robert Nishihara
parent
db4cf24636
commit
23404f7bcf
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user