add a stress test

This commit is contained in:
holger krekel
2020-05-16 20:31:09 +02:00
parent f13fbe4398
commit d9de33820f
3 changed files with 147 additions and 6 deletions

View File

@@ -52,11 +52,10 @@ class Account(object):
if self._dc_context == ffi.NULL:
raise ValueError("Could not dc_context_new: {} {}".format(os_name, db_path))
hook = hookspec.Global._get_plugin_manager().hook
self._shutdown_event = Event()
self._event_thread = EventThread(self)
self._configkeys = self.get_config("sys.config_keys").split()
hook = hookspec.Global._get_plugin_manager().hook
hook.dc_account_init(account=self)
def disable_logging(self):