From 802efa6ea656cbe9f762dc80ada37f09332862f6 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 3 Nov 2018 20:55:30 +0000 Subject: [PATCH] issue #406: ensure broker_test waits for broker exit. --- tests/broker_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/broker_test.py b/tests/broker_test.py index c35e6161..7890b0f3 100644 --- a/tests/broker_test.py +++ b/tests/broker_test.py @@ -32,6 +32,7 @@ class DeferSyncTest(testlib.TestCase): self.assertEquals(th, broker._thread) finally: broker.shutdown() + broker.join() def test_exception(self): broker = self.klass() @@ -40,6 +41,7 @@ class DeferSyncTest(testlib.TestCase): broker.defer_sync, lambda: int('dave')) finally: broker.shutdown() + broker.join() if __name__ == '__main__':