summaryrefslogtreecommitdiff
path: root/python/tests
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-11-10 15:41:42 +0000
committerRafael H. Schloming <rhs@apache.org>2008-11-10 15:41:42 +0000
commita45460718695bbb69fc2b69a740a3e32fc0c1d31 (patch)
treee5afb84db7400f6c21eb002be0dcf0d235b336ef /python/tests
parent8be83d96ee667728d8a5da0db2e68e29c2177dda (diff)
downloadqpid-python-a45460718695bbb69fc2b69a740a3e32fc0c1d31.tar.gz
fixed potential race condition in qpid.util.listen; added asserts to internal test cases to ensure that the test only proceeds when the server is bound
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@712679 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/assembler.py1
-rw-r--r--python/tests/connection.py1
-rw-r--r--python/tests/framer.py1
3 files changed, 3 insertions, 0 deletions
diff --git a/python/tests/assembler.py b/python/tests/assembler.py
index b76924e59d..f4e37084b6 100644
--- a/python/tests/assembler.py
+++ b/python/tests/assembler.py
@@ -47,6 +47,7 @@ class AssemblerTest(TestCase):
self.server.start()
started.wait(3)
+ assert started.isSet()
def tearDown(self):
self.running = False
diff --git a/python/tests/connection.py b/python/tests/connection.py
index 23e0c937fb..512fa62189 100644
--- a/python/tests/connection.py
+++ b/python/tests/connection.py
@@ -87,6 +87,7 @@ class ConnectionTest(TestCase):
self.server.start()
started.wait(3)
+ assert started.isSet()
def tearDown(self):
self.running = False
diff --git a/python/tests/framer.py b/python/tests/framer.py
index 05bb467bbe..e99166721c 100644
--- a/python/tests/framer.py
+++ b/python/tests/framer.py
@@ -46,6 +46,7 @@ class FramerTest(TestCase):
self.server.start()
started.wait(3)
+ assert started.isSet()
def tearDown(self):
self.running = False