test: fix flaky test_no_markseen_in_team_profile (#8500)

fixes https://github.com/chatmail/core/issues/8446
This commit is contained in:
holger krekel
2026-07-31 11:12:28 +02:00
committed by GitHub
parent 020e477662
commit 9476f9ec7f

View File

@@ -1003,6 +1003,11 @@ def test_no_markseen_in_team_profile(team_profile, acfactory):
message.mark_seen() 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 # Send a message and wait until it arrives
# in order to wait until Bob2 gets the markseen message. # in order to wait until Bob2 gets the markseen message.
# This also tests that outgoing messages # This also tests that outgoing messages