issue #406: ensure broker_test waits for broker exit.

This commit is contained in:
David Wilson 2018-11-03 20:55:30 +00:00
parent 10af266678
commit 802efa6ea6
1 changed files with 2 additions and 0 deletions

View File

@ -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__':