Skip to content

Commit

Permalink
Adds while loop for test
Browse files Browse the repository at this point in the history
  • Loading branch information
cristi.dbr committed Apr 12, 2022
1 parent 873c2fe commit 22eed21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ def test_messaging_echo_binary(server):
while(len(wst.messages) == 0 and time.time() < limit):
time.sleep(1e-4)

time.sleep(5.)
limit = time.time() + 5.
while(limit > time.time()):
time.sleep(1e-3)

assert len(wst.messages) == 1
assert wst.messages[0] == multipart_binary

Expand Down

0 comments on commit 22eed21

Please sign in to comment.