Merge "Disable pool recycle in tests"

This commit is contained in:
Zuul 2023-07-03 21:07:15 +00:00 committed by Gerrit Code Review
commit b361a208e7

View File

@ -234,6 +234,10 @@ class DietTestCase(base.BaseTestCase, metaclass=_CatchTimeoutMetaclass):
# for more info.
db_options.set_defaults(cfg.CONF, connection='sqlite://')
# NOTE(ykarel): Disable pool recycle as tables are dropped with sqlite
# memory db with connection close or reconnect
cfg.CONF.set_override('connection_recycle_time', -1, group='database')
# Configure this first to ensure pm debugging support for setUp()
debugger = os.environ.get('OS_POST_MORTEM_DEBUGGER')
if debugger: