Reduces the unit tests run times

This change reduces all rabbit delay related to retring calls.

Change-Id: Ie50f1a66aefde40d85c194729007182d4f6f6e0c
This commit is contained in:
Mehdi Abaakouk 2014-11-28 15:15:58 +01:00
parent bd56131b58
commit cb96666135
1 changed files with 4 additions and 1 deletions

View File

@ -628,7 +628,10 @@ class RpcKombuHATestCase(test_utils.BaseTestCase):
def setUp(self):
super(RpcKombuHATestCase, self).setUp()
self.brokers = ['host1', 'host2', 'host3', 'host4', 'host5']
self.config(rabbit_hosts=self.brokers)
self.config(rabbit_hosts=self.brokers,
rabbit_retry_interval=0.01,
rabbit_retry_backoff=0.01,
kombu_reconnect_delay=0)
self.kombu_connect = mock.Mock()
self.useFixture(mockpatch.Patch(