From 4c9cc4f3d4840bcd5390e354eeae05993b22f107 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Sat, 30 Apr 2022 13:35:03 +0200 Subject: [PATCH] Hopefully make test_connectivity() less flaky --- python/tests/test_account.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/tests/test_account.py b/python/tests/test_account.py index ba86ac6b2..84ae37caf 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -2229,7 +2229,7 @@ class TestOnlineAccount: ac1.direct_imap.idle_start() ac2.create_chat(ac1).send_text("Hi") - ac1.direct_imap.idle_wait_for_new_message(terminate=False) + ac1.direct_imap.idle_wait_for_new_message(terminate=True) ac1.maybe_network() ac1._evtracker.wait_for_all_work_done() @@ -2241,8 +2241,6 @@ class TestOnlineAccount: ac2.create_chat(ac1).send_text("Hi 2") - ac1.direct_imap.idle_wait_for_new_message(terminate=True) - ac1.maybe_network() ac1._evtracker.wait_for_connectivity_change(const.DC_CONNECTIVITY_CONNECTED, const.DC_CONNECTIVITY_WORKING) ac1._evtracker.wait_for_connectivity_change(const.DC_CONNECTIVITY_WORKING, const.DC_CONNECTIVITY_CONNECTED)