Skip to content

Commit

Permalink
wait in _handshake_test, to make sure handshake complete. Fixes: #38
Browse files Browse the repository at this point in the history
  • Loading branch information
kouk committed Feb 25, 2014
1 parent 759efbf commit f012467
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenSSL/test/test_ssl.py
Expand Up @@ -13,6 +13,7 @@
from os.path import join
from unittest import main
from weakref import ref
from time import sleep

from six import PY3, u

Expand Down Expand Up @@ -976,6 +977,7 @@ def _handshake_test(self, serverContext, clientContext):
for i in range(3):
for s in [client, server]:
try:
sleep(0.05)
s.do_handshake()
except WantReadError:
pass
Expand Down

0 comments on commit f012467

Please sign in to comment.