Commit 9089b795 authored by Charles-François Natali's avatar Charles-François Natali

Fix a race condition in test_socket.ThreadableTest: the client is reported

ready before having been set up.
parents 85579b8f a49ed765
...@@ -161,8 +161,8 @@ class ThreadableTest: ...@@ -161,8 +161,8 @@ class ThreadableTest:
def clientRun(self, test_func): def clientRun(self, test_func):
self.server_ready.wait() self.server_ready.wait()
self.client_ready.set()
self.clientSetUp() self.clientSetUp()
self.client_ready.set()
if not hasattr(test_func, '__call__'): if not hasattr(test_func, '__call__'):
raise TypeError("test_func must be a callable function") raise TypeError("test_func must be a callable function")
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment