summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/custom/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/custom/Server.cpp')
-rw-r--r--cpp/test/Ice/custom/Server.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/test/Ice/custom/Server.cpp b/cpp/test/Ice/custom/Server.cpp
index 1d643bdea0d..519475855e3 100644
--- a/cpp/test/Ice/custom/Server.cpp
+++ b/cpp/test/Ice/custom/Server.cpp
@@ -20,6 +20,7 @@ DEFINE_TEST("server")
int
run(int, char**, const Ice::CommunicatorPtr& communicator)
{
+ communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
adapter->add(new TestIntfI(communicator), communicator->stringToIdentity("test"));
adapter->add(new Test1::WstringClassI, communicator->stringToIdentity("wstring1"));
@@ -46,11 +47,7 @@ main(int argc, char** argv)
IceUtil::setProcessStringConverter(new Test::StringConverterI);
IceUtil::setProcessWstringConverter(new Test::WstringConverterI);
- Ice::InitializationData initData;
- initData.properties = Ice::createProperties(argc, argv);
- initData.properties->setProperty("TestAdapter.Endpoints", "default -p 12010");
-
- communicator = Ice::initialize(argc, argv, initData);
+ communicator = Ice::initialize(argc, argv);
status = run(argc, argv, communicator);
}
catch(const Ice::Exception& ex)