From 25b8a482bcbba419e0018695e4463858466f8d19 Mon Sep 17 00:00:00 2001 From: iequidoo Date: Sat, 9 Mar 2024 01:43:59 -0300 Subject: [PATCH] test: Set fetch_existing_msgs for bots (#4976) A bot process is run asynchronously, so some messages can arrive before the bot is fully initialised. --- python/src/deltachat/testplugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/src/deltachat/testplugin.py b/python/src/deltachat/testplugin.py index 2840a621a..5044b1543 100644 --- a/python/src/deltachat/testplugin.py +++ b/python/src/deltachat/testplugin.py @@ -551,6 +551,9 @@ class ACFactory: fn = module.__file__ bot_cfg = self.get_next_liveconfig() + # The bot process is run asynchronously, so some messages can arrive before the bot is fully + # initialised. + bot_cfg["fetch_existing_msgs"] = "1" bot_ac = self.prepare_account_from_liveconfig(bot_cfg) # Forget ac as it will be opened by the bot subprocess