summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Abaakouk <mehdi.abaakouk@enovance.com>2015-02-13 12:34:20 +0100
committerMehdi Abaakouk <sileht@sileht.net>2015-02-13 12:35:20 +0100
commita879eb93cdf41cbf56eee94f889ea893f0e5a90b (patch)
treeb22bd41990484438995f43daad3aa12915350e2d
parent858187510dc07869eb1ef4519e04cfe235f5bd2f (diff)
downloadtooz-a879eb93cdf41cbf56eee94f889ea893f0e5a90b.tar.gz
Releases locks in tests
This releases lock in tests when possible, to cleanup the ipc semaphore entry used by the ipc driver. Change-Id: Ic8be9f32cd3660e54ee1990f00fc3f1277056c9b
-rw-r--r--tooz/tests/test_coordination.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tooz/tests/test_coordination.py b/tooz/tests/test_coordination.py
index 8de2f58..a17acab 100644
--- a/tooz/tests/test_coordination.py
+++ b/tooz/tests/test_coordination.py
@@ -591,6 +591,7 @@ class TestAPI(testscenarios.TestWithScenarios,
self.assertEqual(False, lock2.acquire(blocking=False))
lock.release()
self.assertEqual(True, lock2.acquire(blocking=True))
+ lock2.release()
@staticmethod
def _get_random_uuid():