From 0215046c76c54fb66d54e805c7f132c48c61433b Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 27 Dec 2022 16:07:29 +0000 Subject: [PATCH] Fix test_synchronize_member_list_on_group_rejoin --- python/tests/test_0_complex_or_slow.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/tests/test_0_complex_or_slow.py b/python/tests/test_0_complex_or_slow.py index 034839ee5..2e19c5e6c 100644 --- a/python/tests/test_0_complex_or_slow.py +++ b/python/tests/test_0_complex_or_slow.py @@ -106,8 +106,13 @@ class TestGroupStressTests: msg = ac2._evtracker.wait_next_incoming_message() lp.sec("ac1: removing ac3") + ac1._evtracker.consume_events() chat.remove_contact(ac3) + # Ensure the message is not pending, + # so we will reference it in the In-Reply-To. + ac1._evtracker.get_matching("DC_EVENT_SMTP_MESSAGE_SENT") + lp.sec("ac1: adding ac2 back") # Group is promoted, message is sent automatically assert chat.is_promoted()