From 996d84773179548b2efd35b96ecc3e21152215b7 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 16 Sep 2017 15:34:55 +0530 Subject: [PATCH] Add some broken tests --- tests/call_function_test.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/call_function_test.py b/tests/call_function_test.py index c28a4c94..7c63dd70 100644 --- a/tests/call_function_test.py +++ b/tests/call_function_test.py @@ -34,7 +34,7 @@ class CallFunctionTest(unittest.TestCase): cls.broker.shutdown() cls.broker.join() - def test_call_crashes(self): + def test_crashes(self): try: self.local.call(function_that_fails) assert 0, 'call didnt fail' @@ -63,5 +63,15 @@ class CallFunctionTest(unittest.TestCase): "in module 'call_function_test'" ) - def test_call_returns_dead(self): + def test_returns_dead(self): assert mitogen.core._DEAD == self.local.call(func_returns_dead) + + def test_aborted_on_context_disconnect(self): + assert 0, 'todo' + + def test_aborted_on_context_hang_deadline(self): + # related: how to treat context after a function call hangs + assert 0, 'todo' + + def test_aborted_on_local_broker_shutdown(self): + assert 0, 'todo'