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
This commit is contained in:
Julien Danjou 2017-06-12 10:38:35 +02:00
parent 18fdfa9de7
commit ebd405056f
1 changed files with 6 additions and 0 deletions

View File

@ -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)