From e90cbdb0fb65c78b5effd55f3b95eb78dcbebc48 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 29 Dec 2017 20:40:28 +0000 Subject: Pass initialization params into the mock daemon's communicator --- netfs/unittests/mockDaemon.cpp | 6 ++++-- 1 file 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, {}); -- cgit v1.2.3