From f98d0bbc1f1179b64ddec515f5ceb2e4266ed72b Mon Sep 17 00:00:00 2001 From: holger krekel Date: Thu, 26 Mar 2020 09:45:39 +0100 Subject: [PATCH] fix failing sync test --- python/tests/test_account.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/tests/test_account.py b/python/tests/test_account.py index b653159cd..69b3f3b0b 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -1563,7 +1563,7 @@ class TestGroupStressTests: # send a message to get the contact key via autocrypt header chat1.send_text("hi") - msg = ac1.wait_next_incoming_message() + msg = ac1._evtracker.wait_next_incoming_message() assert msg.text == "hi" ac2, ac3 = accounts @@ -1584,7 +1584,7 @@ class TestGroupStressTests: lp.sec("checking that the chat arrived correctly") for ac in accounts: - msg = ac.wait_next_incoming_message() + msg = ac._evtracker.wait_next_incoming_message() assert msg.text == "hello" print("chat is", msg.chat) assert len(msg.chat.get_contacts()) == 3 @@ -1593,7 +1593,7 @@ class TestGroupStressTests: chat.remove_contact(contacts[0]) lp.sec("ac2: wait for a message about removal from the chat") - msg = ac2.wait_next_incoming_message() + msg = ac2._evtracker.wait_next_incoming_message() lp.sec("ac1: removing ac3") chat.remove_contact(contacts[1]) @@ -1604,7 +1604,7 @@ class TestGroupStressTests: chat.add_contact(contacts[0]) lp.sec("ac2: check that ac3 is removed") - msg = ac2.wait_next_incoming_message() + msg = ac2._evtracker.wait_next_incoming_message() assert len(msg.chat.get_contacts()) == len(chat.get_contacts())