diff options
author | Alan Conway <aconway@apache.org> | 2012-10-09 19:52:24 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2012-10-09 19:52:24 +0000 |
commit | eef14cb62023b3f47cd2d4fc23a9d46720ddefd3 (patch) | |
tree | 608b353c62891fa277d3cd9ef39d6ed599b9b905 /qpid/cpp/src/tests/ha_test.py | |
parent | 58bc28edb31673198e04b59472ee7e2ad40e24f0 (diff) | |
download | qpid-python-eef14cb62023b3f47cd2d4fc23a9d46720ddefd3.tar.gz |
QPID-4360: Fix test bug: Non-ready HA broker can be incorrectly promoted to primary.
Test test_delete_missing_response was failing with "cluster active, cannot promote".
- Fixed test bug: "fake" primary triggered "cannot promote".
- Backup: always create QueueReplicator if not already existing.
- Terminology change: "initial" queues -> "catch-up" queues.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1396244 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ha_test.py')
-rwxr-xr-x | qpid/cpp/src/tests/ha_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/ha_test.py b/qpid/cpp/src/tests/ha_test.py index 79db67e3c8..462c90bfb3 100755 --- a/qpid/cpp/src/tests/ha_test.py +++ b/qpid/cpp/src/tests/ha_test.py @@ -199,7 +199,7 @@ class HaCluster(object): HaCluster._cluster_count += 1 for i in xrange(n): self.start(False) self.update_urls() - self[0].promote() + if promote: self[0].promote() def next_name(self): name="cluster%s-%s"%(self.id, self.broker_id) |