From 3b91815240a09ec30a84b0ccdc1e77e57be3f4cb Mon Sep 17 00:00:00 2001 From: iequidoo Date: Sat, 15 Jun 2024 14:07:51 -0300 Subject: [PATCH] test(python): Set delete_server_after=1 ("delete immediately") for bots (#4976) Test bots are run with `fetch_existing_msgs` set, so messages must be deleted immediately not to be processed again after a bot redeployment. --- python/src/deltachat/testplugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/src/deltachat/testplugin.py b/python/src/deltachat/testplugin.py index 5044b1543..eb62fb23d 100644 --- a/python/src/deltachat/testplugin.py +++ b/python/src/deltachat/testplugin.py @@ -552,8 +552,9 @@ class ACFactory: bot_cfg = self.get_next_liveconfig() # The bot process is run asynchronously, so some messages can arrive before the bot is fully - # initialised. + # initialised. Also delete messages immediately to not process them again after restart. bot_cfg["fetch_existing_msgs"] = "1" + bot_cfg["delete_server_after"] = "1" bot_ac = self.prepare_account_from_liveconfig(bot_cfg) # Forget ac as it will be opened by the bot subprocess