summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/facets/Collocated.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/facets/Collocated.cpp')
-rw-r--r--cpp/test/Ice/facets/Collocated.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Ice/facets/Collocated.cpp b/cpp/test/Ice/facets/Collocated.cpp
index 6257639d6b5..963405b6305 100644
--- a/cpp/test/Ice/facets/Collocated.cpp
+++ b/cpp/test/Ice/facets/Collocated.cpp
@@ -16,8 +16,8 @@ using namespace std;
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
- string endpts = "default -p 12345 -t 2000";
- Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts);
+ communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000");
+ Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr d = new DI;
adapter->add(d, Ice::stringToIdentity("d"));
d->ice_addFacet(d, "facetABCD");