From 05b25aed9220fcb953c3d1a6b1ff16c900c94b36 Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Sat, 24 Jan 2015 11:46:58 -0800 Subject: [PATCH] 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 --- designate/tests/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/designate/tests/__init__.py b/designate/tests/__init__.py index e9ff5d0ce..f2e5fc731 100644 --- a/designate/tests/__init__.py +++ b/designate/tests/__init__.py @@ -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')