From ebd405056fdb84de1ea2b09f19090d9be3cd582e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 12 Jun 2017 10:38:35 +0200 Subject: [PATCH] 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 --- tooz/tests/test_coordination.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tooz/tests/test_coordination.py b/tooz/tests/test_coordination.py index 611aa89c..479ed573 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)