summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-12-29 20:40:28 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-12-29 20:40:28 +0000
commite90cbdb0fb65c78b5effd55f3b95eb78dcbebc48 (patch)
tree6fd7d0fea40144f2f8cffedcde789eabaf200232
parentAdd missing library links so tests can be run cleanly from the command line (diff)
downloadnetfs-e90cbdb0fb65c78b5effd55f3b95eb78dcbebc48.tar.bz2
netfs-e90cbdb0fb65c78b5effd55f3b95eb78dcbebc48.tar.xz
netfs-e90cbdb0fb65c78b5effd55f3b95eb78dcbebc48.zip
Pass initialization params into the mock daemon's communicator
-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, {});