Merge "Stop get_notifier mock in tests cleanup"

This commit is contained in:
Jenkins 2017-02-03 13:41:25 +00:00 committed by Gerrit Code Review
commit 1c948c791c

View File

@ -110,9 +110,8 @@ class TestCase(testtools.TestCase):
# Mock rpc get notifier with fake notifier method that joins all
# notifications with the default notifier
p = mock.patch('cinder.rpc.get_notifier',
side_effect=self._get_joined_notifier)
p.start()
self.patch('cinder.rpc.get_notifier',
side_effect=self._get_joined_notifier)
if self.MOCK_WORKER:
# Mock worker creation for all tests that don't care about it