Skip to content

Commit

Permalink
Added sleep to NoHandshake tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgalanakis committed Jul 15, 2014
1 parent 496a853 commit 47e6295
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import time

import mock

Expand Down Expand Up @@ -46,6 +47,10 @@ def new_client(cls):
cl.socket.close()
else:
raise AssertionError('Could not find an open port.')
# Since server is on a thread, allow it to run.
# Normally the handshake will act as synchronization,
# but we aren't using a handshake here.
time.sleep(0.1)
return cl


Expand Down

0 comments on commit 47e6295

Please sign in to comment.