src: Make log-level in nlsr.conf optional
refs: #2335
Change-Id: I185b6200ad1d7f16e3ca4b646ec20af83f983787
diff --git a/tests/test-conf-file-processor.cpp b/tests/test-conf-file-processor.cpp
index 817f149..653faa3 100644
--- a/tests/test-conf-file-processor.cpp
+++ b/tests/test-conf-file-processor.cpp
@@ -377,6 +377,7 @@
commentOut("lsa-refresh-time", config);
commentOut("lsa-interest-lifetime", config);
commentOut("router-dead-interval", config);
+ commentOut("log-level", config);
BOOST_CHECK_EQUAL(processConfigurationString(config), true);
@@ -386,6 +387,7 @@
BOOST_CHECK_EQUAL(conf.getLsaInterestLifetime(),
static_cast<ndn::time::seconds>(LSA_INTEREST_LIFETIME_DEFAULT));
BOOST_CHECK_EQUAL(conf.getRouterDeadInterval(), (2*conf.getLsaRefreshTime()));
+ BOOST_CHECK_EQUAL(conf.getLogLevel(), "INFO");
}
BOOST_AUTO_TEST_CASE(DefaultValuesNeighbors)