diff options
| author | Alan Conway <aconway@apache.org> | 2009-11-20 14:50:32 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-11-20 14:50:32 +0000 |
| commit | 5837efc7e40adc4c8bcb3b86bec877ffdc418f95 (patch) | |
| tree | 399521bc6ce42118ab7b7c9385d8d7cde5740771 /qpid/cpp/src | |
| parent | 484ba284073afdd9aab03727809fc2e85113e664 (diff) | |
| download | qpid-python-5837efc7e40adc4c8bcb3b86bec877ffdc418f95.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@882587 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/tests/ClusterFailover.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/ClusterFailover.cpp b/qpid/cpp/src/tests/ClusterFailover.cpp index 5ecc25659c..f7d05d516b 100644 --- a/qpid/cpp/src/tests/ClusterFailover.cpp +++ b/qpid/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. } |
