publisher: set router-name command prefix correctly
refs: #3651
Change-Id: Ic3771de5161fc482f76df78035dcb9f5325e1a9d
diff --git a/tests/publisher/test-lsdb-dataset-interest-handler.cpp b/tests/publisher/test-lsdb-dataset-interest-handler.cpp
index a574df1..80c83ce 100644
--- a/tests/publisher/test-lsdb-dataset-interest-handler.cpp
+++ b/tests/publisher/test-lsdb-dataset-interest-handler.cpp
@@ -81,7 +81,9 @@
lsdb.installNameLsa(nameLsa);
ndn::Name thisRouter("/This/Router");
- LsdbDatasetInterestHandler publisher(lsdb, *face, thisRouter, keyChain);
+ LsdbDatasetInterestHandler publisher(lsdb, *face, keyChain);
+ publisher.setRouterNameCommandPrefix(thisRouter);
+
publisher.startListeningOnLocalhost();
face->processEvents(ndn::time::milliseconds(10));
@@ -136,7 +138,8 @@
BOOST_AUTO_TEST_CASE(InvalidCommand)
{
ndn::Name thisRouter("/This/Router");
- LsdbDatasetInterestHandler publisher(lsdb, *face, thisRouter, keyChain);
+ LsdbDatasetInterestHandler publisher(lsdb, *face, keyChain);
+ publisher.setRouterNameCommandPrefix(thisRouter);
// Localhost prefix
publisher.startListeningOnLocalhost();