Skip to content

Commit 5eb80f5

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Disable pool recycle in tests" into stable/zed
2 parents e227695 + a03a60e commit 5eb80f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

neutron/tests/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ def setUp(self):
253253
# for more info.
254254
db_options.set_defaults(cfg.CONF, connection='sqlite://')
255255

256+
# NOTE(ykarel): Disable pool recycle as tables are dropped with sqlite
257+
# memory db with connection close or reconnect
258+
cfg.CONF.set_override('connection_recycle_time', -1, group='database')
259+
256260
# Configure this first to ensure pm debugging support for setUp()
257261
debugger = os.environ.get('OS_POST_MORTEM_DEBUGGER')
258262
if debugger:

0 commit comments

Comments
 (0)