diff --git a/python/tests/test_account.py b/python/tests/test_account.py index e222f3c90..1d5a0b71f 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -1476,16 +1476,25 @@ class TestOnlineAccount: def test_autodelete_timer(self, acfactory, lp): ac1, ac2 = acfactory.get_two_online_accounts() - lp.sec("create unpromoted group chat") - chat = ac1.create_group_chat("hello") + lp.sec("ac1: create chat with ac2") + chat1 = self.get_chat(ac1, ac2) + chat2 = self.get_chat(ac2, ac1) - chat.set_autodelete_timer(60) + chat1.set_autodelete_timer(60) + chat1.send_text("hello") - assert chat.get_autodelete_timer() == 60 - - d = chat.get_summary() + assert chat1.get_autodelete_timer() == 60 + d = chat1.get_summary() assert d["autodelete_timer"] == 60 + ac2._evtracker.get_matching("DC_EVENT_CHAT_AUTODELETE_TIMER_MODIFIED") + ac2._evtracker.get_matching("DC_EVENT_INCOMING_MSG") + assert chat2.get_autodelete_timer() == 60 + + ac1._evtracker.consume_events() + ac2._evtracker.consume_events() + + class TestGroupStressTests: def test_group_many_members_add_leave_remove(self, acfactory, lp): lp.sec("creating and configuring five accounts")