mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 03:25:12 +08:00
Check if processes are alive in test. (#261)
This commit is contained in:
committed by
Philipp Moritz
parent
249b667b0e
commit
ec175b7dfb
@@ -93,6 +93,8 @@ class TaskTests(unittest.TestCase):
|
||||
n = 10 ** 4 # TODO(pcm): replace by 10 ** 5 once this is faster
|
||||
l = ray.get([f.remote() for _ in range(n)])
|
||||
self.assertEqual(l, n * [1])
|
||||
|
||||
self.assertTrue(ray.services.all_processes_alive())
|
||||
ray.worker.cleanup()
|
||||
|
||||
def testWait(self):
|
||||
|
||||
Reference in New Issue
Block a user