From dad63815191ea7365994d3040c8e1e9ec14d9483 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 12 Jun 2020 22:14:31 +0300 Subject: [PATCH] run_bot_process: remove account from _accounts before starting the bot Otherwise wait_configure_and_start_io() will start account, and it will operate on the same database as the bot. --- python/src/deltachat/testplugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/src/deltachat/testplugin.py b/python/src/deltachat/testplugin.py index 32df32beb..aa0f878fb 100644 --- a/python/src/deltachat/testplugin.py +++ b/python/src/deltachat/testplugin.py @@ -359,6 +359,10 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig, data): bot_ac, bot_cfg = self.get_online_config() + # Avoid starting ac so we don't interfere with the bot operating on + # the same database. + self._accounts.remove(bot_ac) + args = [ sys.executable, "-u",