mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
speed up test teardown by now waiting for threads to finish ...
and remove a debug statement
This commit is contained in:
@@ -103,7 +103,7 @@ def acfactory(pytestconfig, tmpdir, request):
|
||||
ac._evlogger.set_timeout(30)
|
||||
ac.configure(**configdict)
|
||||
ac.start_threads()
|
||||
self._finalizers.append(ac.stop_threads)
|
||||
self._finalizers.append(lambda: ac.stop_threads(wait=False))
|
||||
return ac
|
||||
|
||||
def clone_online_account(self, account):
|
||||
@@ -114,7 +114,7 @@ def acfactory(pytestconfig, tmpdir, request):
|
||||
ac._evlogger.set_timeout(30)
|
||||
ac.configure(addr=account.get_config("addr"), mail_pw=account.get_config("mail_pw"))
|
||||
ac.start_threads()
|
||||
self._finalizers.append(ac.stop_threads)
|
||||
self._finalizers.append(lambda: ac.stop_threads(wait=False))
|
||||
return ac
|
||||
|
||||
return AccountMaker()
|
||||
|
||||
Reference in New Issue
Block a user