mirror of
https://github.com/wassname/ray.git
synced 2026-09-11 12:43:20 +08:00
fix wait test (#158)
This commit is contained in:
committed by
Robert Nishihara
parent
8309e3f355
commit
d6695c867a
@@ -592,8 +592,9 @@ class TestPlasmaManager(unittest.TestCase):
|
||||
|
||||
# Make sure that wait returns when the requested number of object IDs are
|
||||
# available and does not wait for all object IDs to be available.
|
||||
object_ids = [random_object_id() for _ in range(10)]
|
||||
object_ids_perm = np.random.permutation(object_ids)
|
||||
object_ids = [random_object_id() for _ in range(9)] + [20 * b'\x00']
|
||||
object_ids_perm = object_ids[:]
|
||||
random.shuffle(object_ids_perm)
|
||||
for i in range(10):
|
||||
if i % 2 == 0:
|
||||
create_object_with_id(self.client1, object_ids_perm[i], 2000, 2000)
|
||||
|
||||
Reference in New Issue
Block a user