summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-05-17 18:05:51 +0000
committerAlan Conway <aconway@apache.org>2012-05-17 18:05:51 +0000
commita40d3f6c1ad1fd47d7d7294043988fc5aa85fdec (patch)
tree43ba3125416b4c3cb1b116d8a3ee3b966508b1ee
parentf5d67044a9797c397764a7ac1aa1a1ed4aa893a3 (diff)
downloadqpid-python-a40d3f6c1ad1fd47d7d7294043988fc5aa85fdec.tar.gz
QPID-3603: HA failover test, increase timeout to avoid false failures.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1339757 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/cpp/src/tests/ha_tests.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/ha_tests.py b/qpid/cpp/src/tests/ha_tests.py
index a5c6271ba0..411dac6eeb 100755
--- a/qpid/cpp/src/tests/ha_tests.py
+++ b/qpid/cpp/src/tests/ha_tests.py
@@ -683,9 +683,7 @@ class LongTests(BrokerTest):
if d: return float(d)*60
else: return 3 # Default is to be quick
-
- # FIXME aconway 2012-05-15: disabled till functionality fixed.
- def disable_test_failover_send_receive(self):
+ def test_failover_send_receive(self):
"""Test failover with continuous send-receive"""
# Start a cluster, all members will be killed during the test.
# FIXME aconway 2012-05-01: try expected-backups=1, requires catchup-ready fixed.
@@ -717,7 +715,8 @@ class LongTests(BrokerTest):
def enough(): # Verify we're still running
receiver.check() # Verify no exceptions
return receiver.received > n + 100
- assert retry(enough, 1)
+ # FIXME aconway 2012-05-17: client reconnect sometimes takes > 1 sec.
+ assert retry(enough, 10)
except:
traceback.print_exc()
raise