mirror of
https://github.com/chatmail/core.git
synced 2026-05-23 00:36:32 +03:00
python: remove flaky .wait_for_seen() from test_fetch_existing()
This commit is contained in:
@@ -220,16 +220,16 @@ def test_fetch_existing(acfactory, lp, mvbox_move):
|
|||||||
acfactory.bring_accounts_online()
|
acfactory.bring_accounts_online()
|
||||||
assert_folders_configured(ac1)
|
assert_folders_configured(ac1)
|
||||||
|
|
||||||
assert ac1.direct_imap.select_config_folder("mvbox" if mvbox_move else "inbox")
|
lp.sec("send out message with bcc to ourselves")
|
||||||
with ac1.direct_imap.idle() as idle1:
|
ac1.set_config("bcc_self", "1")
|
||||||
lp.sec("send out message with bcc to ourselves")
|
chat = acfactory.get_accepted_chat(ac1, ac2)
|
||||||
ac1.set_config("bcc_self", "1")
|
chat.send_text("message text")
|
||||||
chat = acfactory.get_accepted_chat(ac1, ac2)
|
|
||||||
chat.send_text("message text")
|
|
||||||
assert_folders_configured(ac1)
|
|
||||||
|
|
||||||
lp.sec("wait until the bcc_self message arrives in correct folder and is marked seen")
|
lp.sec("wait until the bcc_self message arrives in correct folder and is marked seen")
|
||||||
assert idle1.wait_for_seen()
|
if mvbox_move:
|
||||||
|
ac1._evtracker.get_info_contains("Marked messages [0-9]+ in folder DeltaChat as seen.")
|
||||||
|
else:
|
||||||
|
ac1._evtracker.get_info_contains("Marked messages [0-9]+ in folder INBOX as seen.")
|
||||||
assert_folders_configured(ac1)
|
assert_folders_configured(ac1)
|
||||||
|
|
||||||
lp.sec("create a cloned ac1 and fetch contact history during configure")
|
lp.sec("create a cloned ac1 and fetch contact history during configure")
|
||||||
|
|||||||
Reference in New Issue
Block a user