From 170e1764c4682c0bcf15deb3e83bb51e7735e2c4 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Tue, 23 Jan 2018 12:09:32 -0800 Subject: [PATCH] Don't override oslo.db tweaks for connection pool in tests This is in a way a follow-up for Ia97d6cf24e554f7b3878dd301ae4e7e10a1c9998 that removed the same in production neutron code to rely on default values inherited from oslo.db. There is no clear need to override those settings in test environment either, so at best it's boilerplate code. Related-Bug: #1682307 Change-Id: Ie2e2dd0659b1cd6d8b8480e2d78d00475ab01b40 --- neutron_lib/tests/_base.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/neutron_lib/tests/_base.py b/neutron_lib/tests/_base.py index 9756b27a7..7f4cb66cc 100644 --- a/neutron_lib/tests/_base.py +++ b/neutron_lib/tests/_base.py @@ -124,13 +124,7 @@ class BaseTestCase(testtools.TestCase): mock.patch.object(exceptions.NeutronException, 'use_fatal_exceptions', return_value=True).start() - # Update the default QueuePool parameters. These can be tweaked by the - # conf variables - max_pool_size, max_overflow and pool_timeout - db_options.set_defaults( - cfg.CONF, - connection='sqlite://', - max_pool_size=10, - max_overflow=20, pool_timeout=10) + db_options.set_defaults(cfg.CONF, connection='sqlite://') self.useFixture(fixtures.MonkeyPatch( 'oslo_config.cfg.find_config_files',