qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r882587 - /qpid/trunk/qpid/cpp/src/tests/ClusterFailover.cpp
Date Fri, 20 Nov 2009 14:50:33 GMT
Author: aconway
Date: Fri Nov 20 14:50:32 2009
New Revision: 882587

URL: http://svn.apache.org/viewvc?rev=882587&view=rev
Log:
Fix race in the test: wait for both brokers to be ready before killing one.

Modified:
    qpid/trunk/qpid/cpp/src/tests/ClusterFailover.cpp

Modified: qpid/trunk/qpid/cpp/src/tests/ClusterFailover.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/ClusterFailover.cpp?rev=882587&r1=882586&r2=882587&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/ClusterFailover.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/ClusterFailover.cpp Fri Nov 20 14:50:32 2009
@@ -58,6 +58,7 @@
     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.
 }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message