summaryrefslogtreecommitdiff
path: root/tooz/tests
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2017-06-12 10:38:35 +0200
committerJulien Danjou <julien@danjou.info>2017-06-12 17:00:35 +0200
commitebd405056fdb84de1ea2b09f19090d9be3cd582e (patch)
tree19be17847d3fa6433831799e8d2559412c71f5e2 /tooz/tests
parent18fdfa9de74affa974d1536bdb7678c4df68e0a6 (diff)
downloadtooz-ebd405056fdb84de1ea2b09f19090d9be3cd582e.tar.gz
Disable test_get_lock_serial_locking_two_lock_process for etcd3
gRPC (used by python-etcd3) is not able to work correctly with fork. One can only use it in the child or master process, but not both. Therefore this test will fail or hang forever. Change-Id: I32453d2d968faefeffcff1f5b70b46daec36c300
Diffstat (limited to 'tooz/tests')
-rw-r--r--tooz/tests/test_coordination.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tooz/tests/test_coordination.py b/tooz/tests/test_coordination.py
index 611aa89..479ed57 100644
--- a/tooz/tests/test_coordination.py
+++ b/tooz/tests/test_coordination.py
@@ -816,6 +816,12 @@ class TestAPI(tests.TestWithCoordinator):
futures.ProcessPoolExecutor, False)
def test_get_lock_serial_locking_two_lock_process(self):
+ # NOTE(jd) Using gRPC and forking is not supported so this test might
+ # very likely hang forever or crash. See
+ # https://github.com/grpc/grpc/issues/10140#issuecomment-297548714 for
+ # more info.
+ if self.url.startswith("etcd3://"):
+ self.skipTest("Unable to use etcd3 with fork()")
self._do_test_get_lock_serial_locking_two_lock(
futures.ProcessPoolExecutor, False)