Cleanup use of oslo.messaging's ConfFixture
This makes it clearer as to when the messaging config options are set, and also reduces the messaging timeout to 5 seconds from 60 seconds. Change-Id: I7b64418f19133607d5bf12bf6f33d27294d45601
This commit is contained in:
parent
a80e6d0430
commit
05b25aed92
@ -326,9 +326,10 @@ class TestCase(base.BaseTestCase):
|
||||
|
||||
self.CONF = self.useFixture(cfg_fixture.Config(cfg.CONF)).conf
|
||||
|
||||
self.messaging_conf = self.useFixture(
|
||||
messaging_fixture.ConfFixture(cfg.CONF))
|
||||
self.messaging_conf = messaging_fixture.ConfFixture(cfg.CONF)
|
||||
self.messaging_conf.transport_driver = 'fake'
|
||||
self.messaging_conf.response_timeout = 5
|
||||
self.useFixture(self.messaging_conf)
|
||||
|
||||
self.config(notification_driver='test')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user