Check if processes are alive in test. (#261)

This commit is contained in:
Robert Nishihara
2017-02-09 23:40:39 -08:00
committed by Philipp Moritz
parent 249b667b0e
commit ec175b7dfb
+2
View File
@@ -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):