From 003526ef7bd0b4ca65e35df35e0d725709f69981 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 4 Nov 2018 01:54:50 +0000 Subject: [PATCH] issue #406: fix thread leaks in unix_test too. --- tests/unix_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unix_test.py b/tests/unix_test.py index f837c6f0..ee9499ba 100644 --- a/tests/unix_test.py +++ b/tests/unix_test.py @@ -87,6 +87,8 @@ class ClientTest(testlib.TestCase): resp = context.call_service(service_name=MyService, method_name='ping') self.assertEquals(mitogen.context_id, resp['src_id']) self.assertEquals(0, resp['auth_id']) + router.broker.shutdown() + router.broker.join() def _test_simple_server(self, path): router = mitogen.master.Router() @@ -102,7 +104,9 @@ class ClientTest(testlib.TestCase): time.sleep(0.1) finally: pool.shutdown() + pool.join() router.broker.shutdown() + router.broker.join() finally: os._exit(0)