summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2015-04-03 18:47:00 +0000
committerAlan Conway <aconway@apache.org>2015-04-03 18:47:00 +0000
commit0c426799fbe54765c3cc3f59def59b14f8d76637 (patch)
tree65eedcd9ee69650628e9cf2e373058cea79b06a4 /cpp
parentbc6f4c76bb2e91f697f573699c226afee56d6916 (diff)
downloadqpid-python-0c426799fbe54765c3cc3f59def59b14f8d76637.tar.gz
NO-JIRA: Fix race condition in HA tests, remove useless test.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1671124 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/src/tests/ha_tests.py27
1 files changed, 6 insertions, 21 deletions
diff --git a/cpp/src/tests/ha_tests.py b/cpp/src/tests/ha_tests.py
index 180831569f..d0d713e34a 100755
--- a/cpp/src/tests/ha_tests.py
+++ b/cpp/src/tests/ha_tests.py
@@ -682,17 +682,17 @@ acl deny all all
# Altex is in use as an alternate exchange, we should get an exception
self.assertRaises(Exception, a.delExchange, "altex")
# Check backup that was connected during setup.
- cluster[1].wait_status("ready")
- cluster[1].wait_backup("ex")
- cluster[1].wait_backup("q")
+ def wait(broker):
+ broker.wait_status("ready")
+ for a in ["q", "ex", "altq", "altex"]:
+ broker.wait_backup(a)
+ wait(cluster[1])
cluster.bounce(0)
verify(cluster[1])
# Check a newly started backup.
cluster.start()
- cluster[2].wait_status("ready")
- cluster[2].wait_backup("ex")
- cluster[2].wait_backup("q")
+ wait(cluster[2])
cluster.bounce(1)
verify(cluster[2])
@@ -839,21 +839,6 @@ acl deny all all
cluster.start()
send_ttl_messages()
- def test_stale_response(self):
- """Check for race condition where a stale response is processed after an
- event for the same queue/exchange """
- cluster = HaCluster(self, 2)
- s = cluster[0].connect().session()
- s.sender("keep;{create:always}") # Leave this queue in place.
- for i in xrange(100):
- q = "deleteme%s"%(i)
- cluster[0].agent.addQueue(q)
- cluster[0].agent.delQueue(q)
- # It is possible for the backup to attempt to subscribe after the queue
- # is deleted. This is not an error, but is logged as an error on the primary.
- # The backup does not log this as an error so we only check the backup log for errors.
- cluster[1].assert_log_clean()
-
def test_missed_recreate(self):
"""If a queue or exchange is destroyed and one with the same name re-created
while a backup is disconnected, the backup should also delete/recreate