Skip to content

Commit 16562b0

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Reset global wsgi app state in unit test"
2 parents a337c1d + bc2c19b commit 16562b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nova/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
from sqlalchemy.dialects import sqlite
5454
import testtools
5555

56+
from nova.api.openstack import wsgi_app
5657
from nova.compute import rpcapi as compute_rpcapi
5758
from nova import context
5859
from nova.db.sqlalchemy import api as sqlalchemy_api
@@ -284,6 +285,10 @@ def setUp(self):
284285

285286
self.useFixture(nova_fixtures.GenericPoisonFixture())
286287

288+
# make sure that the wsgi app is fully initialized for all testcase
289+
# instead of only once initialized for test worker
290+
wsgi_app.init_global_data.reset()
291+
287292
def _setup_cells(self):
288293
"""Setup a normal cellsv2 environment.
289294

0 commit comments

Comments
 (0)