From 9476f9ec7fe0de4a02d24332831d828d854db83a Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 31 Jul 2026 11:12:28 +0200 Subject: [PATCH] test: fix flaky test_no_markseen_in_team_profile (#8500) fixes https://github.com/chatmail/core/issues/8446 --- deltachat-rpc-client/tests/test_something.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deltachat-rpc-client/tests/test_something.py b/deltachat-rpc-client/tests/test_something.py index 054bb600e..7bebeff61 100644 --- a/deltachat-rpc-client/tests/test_something.py +++ b/deltachat-rpc-client/tests/test_something.py @@ -1003,6 +1003,11 @@ def test_no_markseen_in_team_profile(team_profile, acfactory): message.mark_seen() + # The MDN is queued in `smtp_mdns`, which is drained only after the regular + # `smtp` queue, so "Outgoing message" would otherwise overtake it on the wire. + # Wait for the read receipt to reach Alice before queueing "Outgoing message". + alice.wait_for_event(EventType.MSG_READ) + # Send a message and wait until it arrives # in order to wait until Bob2 gets the markseen message. # This also tests that outgoing messages