From df96a1daacaff395946aa5a8d18e38323a66b55b Mon Sep 17 00:00:00 2001 From: iequidoo Date: Thu, 30 Mar 2023 15:23:53 -0300 Subject: [PATCH] test_moved_markseen: Expect DC_EVENT_MSGS_CHANGED also --- python/tests/test_1_online.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tests/test_1_online.py b/python/tests/test_1_online.py index eb324f071..cfa5655a1 100644 --- a/python/tests/test_1_online.py +++ b/python/tests/test_1_online.py @@ -567,7 +567,8 @@ def test_moved_markseen(acfactory): with ac2.direct_imap.idle() as idle2: ac2.start_io() - msg = ac2._evtracker.wait_next_incoming_message() + ev = ac2._evtracker.get_matching("DC_EVENT_INCOMING_MSG|DC_EVENT_MSGS_CHANGED") + msg = ac2.get_message_by_id(ev.data2) # Accept the contact request. msg.chat.accept()