A separate test for dontconnect setting
This commit is contained in:
parent
2b5f605857
commit
2ac4b1fece
|
@ -204,6 +204,11 @@ class TestCore(unittest.TestCase):
|
||||||
self.fail(
|
self.fail(
|
||||||
'Failed to connect during %s sec' % (time.time() - _started))
|
'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):
|
def test_connection(self):
|
||||||
"""test connection to bootstrap servers"""
|
"""test connection to bootstrap servers"""
|
||||||
self._initiate_bootstrap()
|
self._initiate_bootstrap()
|
||||||
|
|
Reference in New Issue
Block a user