mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Merge pull request #1815 from deltachat/multiple-delete-test-fix
Second attempt to fix flaky test
This commit is contained in:
@@ -1669,15 +1669,11 @@ class TestOnlineAccount:
|
|||||||
for text in texts:
|
for text in texts:
|
||||||
chat12.send_text(text)
|
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")
|
lp.sec("ac2: waiting for all messages on the other side")
|
||||||
to_delete = []
|
to_delete = []
|
||||||
for text in texts:
|
for text in texts:
|
||||||
msg = ac2._evtracker.wait_next_incoming_message()
|
msg = ac2._evtracker.wait_next_incoming_message()
|
||||||
assert msg.text == text
|
assert msg.text in texts
|
||||||
if text != "third":
|
if text != "third":
|
||||||
to_delete.append(msg)
|
to_delete.append(msg)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user