summaryrefslogtreecommitdiffstats
path: root/tests/unit/rpc/test_kombu.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/rpc/test_kombu.py')
-rw-r--r--tests/unit/rpc/test_kombu.py21
1 files changed, 14 insertions, 7 deletions
diff --git a/tests/unit/rpc/test_kombu.py b/tests/unit/rpc/test_kombu.py
index cbe948d..9838652 100644
--- a/tests/unit/rpc/test_kombu.py
+++ b/tests/unit/rpc/test_kombu.py
@@ -364,7 +364,8 @@ class RpcKombuTestCase(amqp.BaseRpcAMQPTestCase):
'password': FLAGS.rabbit_password,
'port': FLAGS.rabbit_port,
'virtual_host': FLAGS.rabbit_virtual_host,
- 'transport': 'memory'}])
+ 'transport': 'memory',
+ 'heartbeat': FLAGS.rabbit_heartbeat}])
def topic_send(_context, topic, msg):
pass
@@ -384,7 +385,8 @@ class RpcKombuTestCase(amqp.BaseRpcAMQPTestCase):
'password': 'fake_password',
'hostname': 'fake_hostname',
'port': 31337,
- 'virtual_host': 'fake_virtual_host'}
+ 'virtual_host': 'fake_virtual_host',
+ 'heartbeat': FLAGS.rabbit_heartbeat}
class MyConnection(impl_kombu.Connection):
def __init__(myself, *args, **kwargs):
@@ -396,7 +398,8 @@ class RpcKombuTestCase(amqp.BaseRpcAMQPTestCase):
'password': server_params['password'],
'port': server_params['port'],
'virtual_host': server_params['virtual_host'],
- 'transport': 'memory'}])
+ 'transport': 'memory',
+ 'heartbeat': FLAGS.rabbit_heartbeat}])
def topic_send(_context, topic, msg):
pass
@@ -764,25 +767,29 @@ class RpcKombuHATestCase(utils.BaseTestCase):
'password': FLAGS.rabbit_password,
'port': 1234,
'virtual_host': FLAGS.rabbit_virtual_host,
- 'transport': 'memory'},
+ 'transport': 'memory',
+ 'heartbeat': FLAGS.rabbit_heartbeat},
{'hostname': 'host2',
'userid': FLAGS.rabbit_userid,
'password': FLAGS.rabbit_password,
'port': 5678,
'virtual_host': FLAGS.rabbit_virtual_host,
- 'transport': 'memory'},
+ 'transport': 'memory',
+ 'heartbeat': FLAGS.rabbit_heartbeat},
{'hostname': '::1',
'userid': FLAGS.rabbit_userid,
'password': FLAGS.rabbit_password,
'port': 2345,
'virtual_host': FLAGS.rabbit_virtual_host,
- 'transport': 'memory'},
+ 'transport': 'memory',
+ 'heartbeat': FLAGS.rabbit_heartbeat},
{'hostname': '2001:0db8:85a3:0042:0000:8a2e:0370:7334',
'userid': FLAGS.rabbit_userid,
'password': FLAGS.rabbit_password,
'port': 5672,
'virtual_host': FLAGS.rabbit_virtual_host,
- 'transport': 'memory'},
+ 'transport': 'memory',
+ 'heartbeat': FLAGS.rabbit_heartbeat},
]
}