From 2ac4b1fece0612fdead8cbba079e0f38a6d9abba Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Tue, 25 Feb 2020 15:09:40 +0200 Subject: [PATCH] A separate test for dontconnect setting --- src/tests/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/core.py b/src/tests/core.py index 0c93af34..fb9f003b 100644 --- a/src/tests/core.py +++ b/src/tests/core.py @@ -204,6 +204,11 @@ class TestCore(unittest.TestCase): self.fail( 'Failed to connect during %s sec' % (time.time() - _started)) + def test_dontconnect(self): + """all connections are closed 5 seconds after setting dontconnect""" + self._initiate_bootstrap() + self.assertEqual(len(BMConnectionPool().connections()), 0) + def test_connection(self): """test connection to bootstrap servers""" self._initiate_bootstrap()