mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
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.
This commit is contained in:
committed by
holger krekel
parent
d35cf7d6a2
commit
dad6381519
@@ -359,6 +359,10 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig, data):
|
|||||||
|
|
||||||
bot_ac, bot_cfg = self.get_online_config()
|
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 = [
|
args = [
|
||||||
sys.executable,
|
sys.executable,
|
||||||
"-u",
|
"-u",
|
||||||
|
|||||||
Reference in New Issue
Block a user