1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
14 from arvados_cwl.task_queue import TaskQueue
20 raise Exception("Testing error handling")
22 class TestTaskQueue(unittest.TestCase):
24 tq = TaskQueue(threading.Lock(), 2)
26 self.assertIsNone(tq.error)
35 self.assertIsNone(tq.error)
38 def test_tq_error(self):
39 tq = TaskQueue(threading.Lock(), 2)
41 self.assertIsNone(tq.error)
50 self.assertIsNotNone(tq.error)