From 40d32f2d0c7347e8bc6e71ed0d79a5c585c9f8fd Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 24 Mar 2023 12:08:10 +0000 Subject: [PATCH] Do not use IDLE in test_fetch_existing_msgs_group_and_single Makes the test less flaky, as Dovecot sometimes sends only the EXISTS response, but not the FETCH response for flags. --- python/tests/test_0_complex_or_slow.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/tests/test_0_complex_or_slow.py b/python/tests/test_0_complex_or_slow.py index e3decc7d6..970ee32f5 100644 --- a/python/tests/test_0_complex_or_slow.py +++ b/python/tests/test_0_complex_or_slow.py @@ -271,12 +271,12 @@ def test_fetch_existing_msgs_group_and_single(acfactory, lp): ac1._evtracker.wait_next_incoming_message() lp.sec("send out message with bcc to ourselves") - with ac1.direct_imap.idle() as idle1: - ac1.set_config("bcc_self", "1") - ac1_ac2_chat = ac1.create_chat(ac2) - ac1_ac2_chat.send_text("outgoing, encrypted direct message, creating a chat") - # wait until the bcc_self message arrives - assert idle1.wait_for_seen() + ac1.set_config("bcc_self", "1") + ac1_ac2_chat = ac1.create_chat(ac2) + ac1_ac2_chat.send_text("outgoing, encrypted direct message, creating a chat") + + # wait until the bcc_self message arrives + ac1._evtracker.get_info_contains("Marked messages [0-9]+ in folder INBOX as seen.") lp.sec("Clone online account and let it fetch the existing messages") ac1_clone = acfactory.new_online_configuring_account(cloned_from=ac1)