From 0c426799fbe54765c3cc3f59def59b14f8d76637 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 3 Apr 2015 18:47:00 +0000 Subject: 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 --- cpp/src/tests/ha_tests.py | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) (limited to 'cpp') 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 -- cgit v1.2.1