From 7f7f42d721fb59cd06a7b5bcb719d962fbac3602 Mon Sep 17 00:00:00 2001 From: missytake Date: Tue, 16 Jan 2024 19:34:00 +0100 Subject: [PATCH] test: Ensure that member is added before yielding chat --- python/src/deltachat/testplugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/src/deltachat/testplugin.py b/python/src/deltachat/testplugin.py index e4721facd..ac092f4bb 100644 --- a/python/src/deltachat/testplugin.py +++ b/python/src/deltachat/testplugin.py @@ -606,8 +606,10 @@ class ACFactory: qr = chat.get_join_qr() ac2.qr_join_chat(qr) setupplugin.member_added.wait(timeout=30) - ac2.wait_next_incoming_message() - ac2.wait_next_incoming_message() + msg = ac2.wait_next_incoming_message() + assert msg.text == "Messages are guaranteed to be end-to-end encrypted from now on." + msg = ac2.wait_next_incoming_message() + assert "Member Me " in msg.text and " added by " in msg.text return chat def introduce_each_other(self, accounts, sending=True):