summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEric Windisch <eric@cloudscaling.com>2012-07-20 12:24:35 -0400
committerEric Windisch <eric@cloudscaling.com>2012-08-01 11:31:44 -0400
commit9d65ec95ebb34121b39ebae195356315e11b232d (patch)
treecd6366936281b0a5c8051d7e27255d98252c0b95 /tests
parent7b5412ffc874c6ff89f61b286a69c88080b65f42 (diff)
downloadoslo-9d65ec95ebb34121b39ebae195356315e11b232d.tar.gz
oslo-9d65ec95ebb34121b39ebae195356315e11b232d.tar.xz
oslo-9d65ec95ebb34121b39ebae195356315e11b232d.zip
Reduce test_zmq's reponse timeout.
The rpc response timeout in Nova's fake_flags.py was 5 seconds. This was lost in the transition to openstack-common, is no longer set globally. As in test_kombu.py, this should be set in test_zmq.py The default value is much higher than it needs to be for the purposes of testing. A lower value fails faster, resulting in faster tests in the event of failures. Change-Id: I106919d36acd19b702be85e453e949495db70ea9
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/rpc/test_zmq.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/rpc/test_zmq.py b/tests/unit/rpc/test_zmq.py
index e27fff1..7189dde 100644
--- a/tests/unit/rpc/test_zmq.py
+++ b/tests/unit/rpc/test_zmq.py
@@ -55,6 +55,7 @@ class _RpcZmqBaseTestCase(common.BaseRpcTestCase):
FLAGS.set_override('rpc_zmq_bind_address', '127.0.0.1')
FLAGS.set_override('rpc_zmq_host', '127.0.0.1')
+ FLAGS.set_override('rpc_response_timeout', 5)
FLAGS.set_default('rpc_zmq_matchmaker',
'mod_matchmaker.MatchMakerLocalhost')