From 528b5e946959c48c01b4ab4d7f2d1d572f5ce947 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sat, 8 Aug 2020 00:00:00 +0300 Subject: [PATCH] Attempt to eliminate test flakiness --- python/tests/test_account.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/tests/test_account.py b/python/tests/test_account.py index 20ab2e310..c15fe4b5b 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -1661,6 +1661,10 @@ class TestOnlineAccount: for text in texts: chat12.send_text(text) + # Ensure messages are delivered in exactly this order. + ac1._evtracker.get_matching("DC_EVENT_SMTP_MESSAGE_SENT") + ac1._evtracker.get_matching("DC_EVENT_MSG_DELIVERED") + lp.sec("ac2: waiting for all messages on the other side") to_delete = [] for text in texts: