diff options
| author | Alan Conway <aconway@apache.org> | 2008-06-26 21:39:28 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-06-26 21:39:28 +0000 |
| commit | 9b4afc77de4a632ec7f1d4bf3f7e2074b07a014a (patch) | |
| tree | 018dc5b0effa11169601c7960cf0ebd7c69d9d53 /qpid/cpp/src/tests/cluster_test.cpp | |
| parent | 8eafbcc7821ea6a6a6976e06fe2c6810c9767e2b (diff) | |
| download | qpid-python-9b4afc77de4a632ec7f1d4bf3f7e2074b07a014a.tar.gz | |
Plugin framework change: single PluginFactory creates per-target Plugin instances.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@672032 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/cluster_test.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/cluster_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/cluster_test.cpp b/qpid/cpp/src/tests/cluster_test.cpp index 19dffe2ee4..b16c8f6cc0 100644 --- a/qpid/cpp/src/tests/cluster_test.cpp +++ b/qpid/cpp/src/tests/cluster_test.cpp @@ -157,14 +157,16 @@ struct ClusterFixture : public ptr_vector<BrokerFixture> { void ClusterFixture::add() { qpid::broker::Broker::Options opts; // Assumes the cluster plugin is loaded. - qpid::Plugin::addOptions(opts); - const char* argv[] = { "--cluster-name=$CLUSTER" }; + qpid::Plugin::Factory::addOptions(opts); + const char* argv[] = { "--cluster-name", ::getenv("USERNAME") }; // FIXME aconway 2008-06-26: fix parse() signature, should not need cast. opts.parse(sizeof(argv)/sizeof(*argv), const_cast<char**>(argv)); push_back(new BrokerFixture(opts)); } #if 0 // FIXME aconway 2008-06-26: TODO + + QPID_AUTO_TEST_CASE(testWiringReplication) { const size_t SIZE=3; ClusterFixture cluster(SIZE); @@ -175,14 +177,12 @@ QPID_AUTO_TEST_CASE(testWiringReplication) { c0.session.exchangeDeclare("ex", arg::type="direct"); BOOST_CHECK_EQUAL("q", c0.session.queueQuery("q").getQueue()); BOOST_CHECK_EQUAL("direct", c0.session.exchangeQuery("ex").getType()); - c0.close(); // Verify all brokers get wiring update. for (size_t i = 1; i < cluster.size(); ++i) { Client c(cluster[i].getPort()); BOOST_CHECK_EQUAL("q", c.session.queueQuery("q").getQueue()); BOOST_CHECK_EQUAL("direct", c.session.exchangeQuery("ex").getType()); - c.close(); } } |
