speed up test teardown by now waiting for threads to finish ...

and remove a debug statement
This commit is contained in:
holger krekel
2019-07-05 23:12:11 +02:00
parent 3d7be47adf
commit 2aa81a7a9a
3 changed files with 4 additions and 5 deletions

View File

@@ -328,10 +328,10 @@ class Account(object):
self.configure()
self._threads.start()
def stop_threads(self):
def stop_threads(self, wait=True):
""" stop IMAP/SMTP threads. """
lib.dc_stop_ongoing_process(self._dc_context)
self._threads.stop(wait=True)
self._threads.stop(wait=wait)
def _process_event(self, ctx, evt_name, data1, data2):
assert ctx == self._dc_context