A separate test for dontconnect setting

This commit is contained in:
Dmitri Bogomolov 2020-02-25 15:09:40 +02:00
parent 2b5f605857
commit 2ac4b1fece
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

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