From 994c4200e0efd51af5717fb27ea025222832482a Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 20 Nov 2009 14:50:32 +0000 Subject: 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 --- cpp/src/tests/ClusterFailover.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src/tests/ClusterFailover.cpp') 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("--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. } -- cgit v1.2.1