summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/cluster_test.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-08-11 18:41:42 +0000
committerAlan Conway <aconway@apache.org>2008-08-11 18:41:42 +0000
commit787f448e33efeec38d7f6485b3c235a7d4b05e63 (patch)
treeb60acf798c96e7490b2abf5ec7a00167d8491d97 /qpid/cpp/src/tests/cluster_test.cpp
parentc4baeebcde0732be4bf530272fea50cd549cb070 (diff)
downloadqpid-python-787f448e33efeec38d7f6485b3c235a7d4b05e63.tar.gz
Integrate CPG file descriptor into broker polling.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@684865 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/cluster_test.cpp')
-rw-r--r--qpid/cpp/src/tests/cluster_test.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/qpid/cpp/src/tests/cluster_test.cpp b/qpid/cpp/src/tests/cluster_test.cpp
index da542352d9..49c5264990 100644
--- a/qpid/cpp/src/tests/cluster_test.cpp
+++ b/qpid/cpp/src/tests/cluster_test.cpp
@@ -162,28 +162,6 @@ struct Callback : public Cpg::Handler {
}
};
-#if 0 // FIXME aconway 2008-08-06:
-
-QPID_AUTO_TEST_CASE(CpgBasic) {
- // Verify basic functionality of cpg. This will catch any
- // openais configuration or permission errors.
- //
- Cpg::Name group("CpgBasic");
- Callback cb(group.str());
- Cpg cpg(cb);
- cpg.join(group);
- iovec iov = { (void*)"Hello!", 6 };
- cpg.mcast(group, &iov, 1);
- cpg.leave(group);
- cpg.dispatchSome();
-
- BOOST_REQUIRE_EQUAL(1u, cb.delivered.size());
- BOOST_CHECK_EQUAL("Hello!", cb.delivered.front());
- BOOST_REQUIRE_EQUAL(2u, cb.configChanges.size());
- BOOST_CHECK_EQUAL(1, cb.configChanges[0]);
- BOOST_CHECK_EQUAL(0, cb.configChanges[1]);
-}
-
QPID_AUTO_TEST_CASE(testForkedBroker) {
// Verify the ForkedBroker works as expected.
const char* argv[] = { "", "--auth=no", "--no-data-dir", "--log-prefix=testForkedBroker" };
@@ -250,7 +228,7 @@ QPID_AUTO_TEST_CASE(testMessageDequeue) {
BOOST_CHECK_EQUAL(0u, c1.session.queueQuery("q").getMessageCount());
BOOST_CHECK_EQUAL(0u, c2.session.queueQuery("q").getMessageCount());
}
-#endif
+
QPID_AUTO_TEST_CASE(testDequeueWaitingSubscription) {
ClusterFixture cluster(3);
// First start a subscription.
@@ -276,6 +254,5 @@ QPID_AUTO_TEST_CASE(testDequeueWaitingSubscription) {
BOOST_CHECK_EQUAL(0u, c2.session.queueQuery("q").getMessageCount());
}
-// TODO aconway 2008-06-25: failover.
QPID_AUTO_TEST_SUITE_END()