mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 23:36:30 +03:00
test(python): avoid race condition in unicode test
This commit is contained in:
@@ -978,15 +978,15 @@ class TestOnlineAccount:
|
|||||||
msg_out = chat.send_text(text1)
|
msg_out = chat.send_text(text1)
|
||||||
assert not msg_out.is_encrypted()
|
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")
|
lp.sec("sending multi-line unicode text message from ac1 to ac2")
|
||||||
text2 = "äalis\nthis is ßßÄ"
|
text2 = "äalis\nthis is ßßÄ"
|
||||||
msg_out = chat.send_text(text2)
|
msg_out = chat.send_text(text2)
|
||||||
assert not msg_out.is_encrypted()
|
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")
|
lp.sec("wait for ac2 to receive multi-line unicode message")
|
||||||
msg_in = ac2._evtracker.wait_next_incoming_message()
|
msg_in = ac2._evtracker.wait_next_incoming_message()
|
||||||
assert msg_in.text == text2
|
assert msg_in.text == text2
|
||||||
|
|||||||
Reference in New Issue
Block a user