diff options
| author | Alan Conway <aconway@apache.org> | 2008-08-11 18:41:42 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-08-11 18:41:42 +0000 |
| commit | ebed79208a920e4986611e4b31f97921dbc93945 (patch) | |
| tree | 6514a1f06a02e03a9b81a718e09012800c28c707 /cpp/src/tests | |
| parent | 5c2e3052815e76e7565038f771cdb235e0516816 (diff) | |
| download | qpid-python-ebed79208a920e4986611e4b31f97921dbc93945.tar.gz | |
Integrate CPG file descriptor into broker polling.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@684865 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests')
| -rw-r--r-- | cpp/src/tests/cluster_test.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/cpp/src/tests/cluster_test.cpp b/cpp/src/tests/cluster_test.cpp index da542352d9..49c5264990 100644 --- a/cpp/src/tests/cluster_test.cpp +++ b/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() |
