Browse Source

Reduces the unit tests run times

This change reduces all rabbit delay related to retring calls.

Change-Id: Ie50f1a66aefde40d85c194729007182d4f6f6e0c
changes/96/137796/1
Mehdi Abaakouk 7 years ago
parent
commit
cb96666135
  1. 5
      tests/drivers/test_impl_rabbit.py

5
tests/drivers/test_impl_rabbit.py

@ -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(

Loading…
Cancel
Save