summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/unittests/mockDaemon.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/netfs/unittests/mockDaemon.cpp b/netfs/unittests/mockDaemon.cpp
index 7fe8389..9fa1f91 100644
--- a/netfs/unittests/mockDaemon.cpp
+++ b/netfs/unittests/mockDaemon.cpp
@@ -54,8 +54,10 @@ MockDaemonHost::stop()
void
MockDaemonHost::start()
{
- ic = Ice::initialize();
- ic->getProperties()->parseCommandLineOptions("NetFSD", params);
+ Ice::InitializationData id;
+ id.properties = Ice::createProperties();
+ id.properties->parseCommandLineOptions("", params);
+ ic = Ice::initialize(id);
ic->getProperties()->setProperty("NetFSD.HostNameOverride", "unittest");
daemon = new MockDaemon(testEndpoint);
daemon->start("NetFSDaemonAdapter", ic, {});