mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Use "spawn" multiprocessing start method (#1279)
workaround https://bugs.python.org/issue6721 Fixes #1278
This commit is contained in:
committed by
Alexander Kukushkin
parent
66d77697ae
commit
efcd05ace2
@@ -83,6 +83,7 @@ class TestPatroni(unittest.TestCase):
|
||||
|
||||
@patch('os.getpid')
|
||||
@patch('multiprocessing.Process')
|
||||
@patch('patroni.use_spawn_start_method', Mock())
|
||||
@patch('patroni.patroni_main', Mock())
|
||||
def test_patroni_main(self, mock_process, mock_getpid):
|
||||
mock_getpid.return_value = 2
|
||||
|
||||
Reference in New Issue
Block a user