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.
This commit is contained in:
iequidoo
2024-03-09 01:43:59 -03:00
committed by iequidoo
parent d7dd563df4
commit 25b8a482bc

View File

@@ -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