mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
[API] Implement get for multiple objects (#398)
* [API] Implement get for multiple objects * Small fixes.
This commit is contained in:
committed by
Robert Nishihara
parent
b6872182bf
commit
3548797202
@@ -306,6 +306,12 @@ class APITest(unittest.TestCase):
|
||||
|
||||
ray.worker.cleanup()
|
||||
|
||||
def testGetMultiple(self):
|
||||
ray.init(start_ray_local=True, num_workers=0)
|
||||
object_ids = [ray.put(i) for i in range(10)]
|
||||
self.assertEqual(ray.get(object_ids), range(10))
|
||||
ray.worker.cleanup()
|
||||
|
||||
def testSelect(self):
|
||||
ray.init(start_ray_local=True, num_workers=4)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user