Skip to content

Commit 3a29a55

Browse files
committed
test(python): make test_mdn_asymmetric less flaky
Normally the message has UID 1, but this is not true when account is reused. In this case the message may be "Marked messages 2 in folder DeltaChat as seen." and the test times out waiting for "Marked messages 1 in folder DeltaChat as seen."
1 parent f024f39 commit 3a29a55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tests/test_1_online.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def test_mdn_asymmetric(acfactory, lp):
703703
assert len(chat.get_messages()) == 1
704704

705705
# Wait for the message to be marked as seen on IMAP.
706-
ac1._evtracker.get_info_contains("Marked messages 1 in folder DeltaChat as seen.")
706+
ac1._evtracker.get_info_contains("Marked messages [0-9]+ in folder DeltaChat as seen.")
707707

708708
# MDN is received even though MDNs are already disabled
709709
assert msg_out.is_out_mdn_received()

0 commit comments

Comments
 (0)