From 8756c0cbe1da269437182db19a01a9eedcc0ac39 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Wed, 3 Jun 2020 16:10:44 +0200 Subject: [PATCH] test(python): avoid race condition in unicode 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 aa124ab74..f0f935465 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -978,15 +978,15 @@ class TestOnlineAccount: msg_out = chat.send_text(text1) assert not msg_out.is_encrypted() + lp.sec("wait for ac2 to receive multi-line non-unicode message") + msg_in = ac2._evtracker.wait_next_incoming_message() + assert msg_in.text == text1 + lp.sec("sending multi-line unicode text message from ac1 to ac2") text2 = "äalis\nthis is ßßÄ" msg_out = chat.send_text(text2) assert not msg_out.is_encrypted() - lp.sec("wait for ac2 to receive multi-line non-unicode message") - msg_in = ac2._evtracker.wait_next_incoming_message() - assert msg_in.text == text1 - lp.sec("wait for ac2 to receive multi-line unicode message") msg_in = ac2._evtracker.wait_next_incoming_message() assert msg_in.text == text2