summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-07-01 19:19:48 +0000
committerAlan Conway <aconway@apache.org>2010-07-01 19:19:48 +0000
commit61847068238af35543de06e54bc757dbfb3da776 (patch)
treebd850b91b8af5acb7722ecad24beb943a8a5f186 /qpid/cpp/src/tests
parente570224156a2ee843026bea97a5128389a962d8b (diff)
downloadqpid-python-61847068238af35543de06e54bc757dbfb3da776.tar.gz
Fix spordic failure in cluster_test testConnectionKnownHosts.
Very occasional failure of the form: cluster_test.cpp(547): error in "testConnectionKnownHosts": check kb0 == kb2 failed [42179 57640 != 44199 57640 ] ]) Fix is to avoid using possibly out-of-date initial-brokers data from the connection. Only rely on updates received from the amq.failover exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@959751 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
-rw-r--r--qpid/cpp/src/tests/ClusterFixture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/ClusterFixture.cpp b/qpid/cpp/src/tests/ClusterFixture.cpp
index 04a5d35b06..6b62cb6fc7 100644
--- a/qpid/cpp/src/tests/ClusterFixture.cpp
+++ b/qpid/cpp/src/tests/ClusterFixture.cpp
@@ -142,7 +142,7 @@ void ClusterFixture::killWithSilencer(size_t n, client::Connection& c, int sig)
*@param n if specified wait for the cluster size to be n, up to a timeout.
*/
std::set<int> knownBrokerPorts(qpid::client::Connection& c, int n) {
- FailoverListener fl(c);
+ FailoverListener fl(c, false);
std::vector<qpid::Url> urls = fl.getKnownBrokers();
if (n >= 0 && unsigned(n) != urls.size()) {
// Retry up to 10 secs in .1 second intervals.