summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-11-20 14:50:32 +0000
committerAlan Conway <aconway@apache.org>2009-11-20 14:50:32 +0000
commit994c4200e0efd51af5717fb27ea025222832482a (patch)
tree3c84165abb202da9406a705b3499aad6367fccd6 /cpp/src
parent70446712966844eb717bff92a076d8c808cd8255 (diff)
downloadqpid-python-994c4200e0efd51af5717fb27ea025222832482a.tar.gz
Fix race in the test: wait for both brokers to be ready before killing one.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@882587 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/ClusterFailover.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/tests/ClusterFailover.cpp b/cpp/src/tests/ClusterFailover.cpp
index 5ecc25659c..f7d05d516b 100644
--- a/cpp/src/tests/ClusterFailover.cpp
+++ b/cpp/src/tests/ClusterFailover.cpp
@@ -58,6 +58,7 @@ QPID_AUTO_TEST_CASE(testReconnectSameSessionName) {
ClusterFixture::Args args = list_of<string>("--auth")("no")("--no-module-dir")("--no-data-dir")("--load-module")(clusterLib.str());
ClusterFixture cluster(2, args, -1);
Client c0(cluster[0], "foo");
+ BOOST_CHECK_EQUAL(2u, knownBrokerPorts(c0.connection, 2).size()); // wait for both.
cluster.killWithSilencer(0, c0.connection, 9);
Client c1(cluster[1], "foo"); // Using same name, should be cleaned up.
}