src: fix incorrect error on face-dataset-fetch-interval valid values

refs: #4211

Change-Id: I9ec04483a633ecf31797dd1637229d147d436d35
diff --git a/tests/test-nlsr.cpp b/tests/test-nlsr.cpp
index 2cfe46f..cba776b 100644
--- a/tests/test-nlsr.cpp
+++ b/tests/test-nlsr.cpp
@@ -19,11 +19,10 @@
  * NLSR, e.g., in COPYING.md file.  If not, see <http://www.gnu.org/licenses/>.
  **/
 
+#include "nlsr.hpp"
 #include "test-common.hpp"
 #include "control-commands.hpp"
 
-#include "nlsr.hpp"
-
 #include <ndn-cxx/mgmt/nfd/face-event-notification.hpp>
 
 namespace nlsr {
@@ -660,7 +659,7 @@
   ndn::nfd::CommandOptions options;
   ndn::time::milliseconds defaultTimeout = options.getTimeout();
 
-  ndn::time::seconds fetchInterval(1);
+  int fetchInterval(1);
   ConfParameter& conf = nlsr.getConfParameter();
   conf.setFaceDatasetFetchInterval(fetchInterval);
   conf.setFaceDatasetFetchTries(0);
@@ -680,7 +679,7 @@
   BOOST_CHECK_EQUAL(nNameMatches, 1);
 
   // Elapse the clock by the reschedule time (that we set)
-  this->advanceClocks(fetchInterval);
+  this->advanceClocks(ndn::time::seconds(fetchInterval));
   // Elapse the default timeout on the interest.
   this->advanceClocks(defaultTimeout);
   // Plus a little more to let the events process.