diff options
author | Alan Conway <aconway@apache.org> | 2015-04-03 18:47:00 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2015-04-03 18:47:00 +0000 |
commit | 550c42d9b1e5dcc235db1d8897942ca013c4095a (patch) | |
tree | d61a3f84e7c83867779680ea7b50a9abae0f0cdb | |
parent | a0b8db4140bcd82744060d5fb8ef6454967618af (diff) | |
download | qpid-python-550c42d9b1e5dcc235db1d8897942ca013c4095a.tar.gz |
NO-JIRA: Fix race condition in HA tests, remove useless test.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1671124 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | qpid/cpp/src/tests/ha_tests.py | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/qpid/cpp/src/tests/ha_tests.py b/qpid/cpp/src/tests/ha_tests.py index 180831569f..d0d713e34a 100755 --- a/qpid/cpp/src/tests/ha_tests.py +++ b/qpid/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 |