conf: make ChronoSync's sync interest lifetime configurable

refs: #4490

Change-Id: Id3eabeed1049d1208ba49c47206f73f798f37a35
diff --git a/tests/test-conf-file-processor.cpp b/tests/test-conf-file-processor.cpp
index 2249dab..65f3ee5 100644
--- a/tests/test-conf-file-processor.cpp
+++ b/tests/test-conf-file-processor.cpp
@@ -44,6 +44,7 @@
   "  lsa-refresh-time 1800\n"
   "  lsa-interest-lifetime 3\n"
   "  router-dead-interval 86400\n"
+  "  sync-interest-lifetime 10000\n"
   "  seq-dir /tmp\n"
   "}\n\n";
 
@@ -176,6 +177,7 @@
   BOOST_CHECK_EQUAL(conf.getLsaRefreshTime(), 1800);
   BOOST_CHECK_EQUAL(conf.getLsaInterestLifetime(), ndn::time::seconds(3));
   BOOST_CHECK_EQUAL(conf.getRouterDeadInterval(), 86400);
+  BOOST_CHECK_EQUAL(conf.getSyncInterestLifetime(), ndn::time::milliseconds(10000));
   BOOST_CHECK_EQUAL(conf.getSeqFileDir(), "/tmp");
 
   // Neighbors
diff --git a/tests/test-lsa-rule.cpp b/tests/test-lsa-rule.cpp
index e776942..5aadaac 100644
--- a/tests/test-lsa-rule.cpp
+++ b/tests/test-lsa-rule.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2014-2017,  The University of Memphis,
+ * Copyright (c) 2014-2018,  The University of Memphis,
  *                           Regents of the University of California,
  *                           Arizona Board of Regents.
  *
@@ -90,6 +90,8 @@
     nlsr.getConfParameter().setNetwork("/ndn");
     nlsr.getConfParameter().setSiteName("/edu/test-site");
     nlsr.getConfParameter().setRouterName("/%C1.Router/router1");
+    // Otherwise code coverage node fails with default 60 seconds lifetime
+    nlsr.getConfParameter().setSyncInterestLifetime(1000);
 
     // Initialize NLSR to initialize the keyChain
     nlsr.initialize();
diff --git a/tests/test-statistics.cpp b/tests/test-statistics.cpp
index c74ab38..51797e5 100644
--- a/tests/test-statistics.cpp
+++ b/tests/test-statistics.cpp
@@ -45,6 +45,8 @@
     conf.setSiteName("/site");
     conf.setRouterName("/%C1.Router/this-router");
     conf.buildRouterPrefix();
+    // Otherwise code coverage node fails with default 60 seconds lifetime
+    conf.setSyncInterestLifetime(1000);
 
     addIdentity(conf.getRouterPrefix());
 
diff --git a/tests/update/test-prefix-update-processor.cpp b/tests/update/test-prefix-update-processor.cpp
index 5bb61f1..70d18c9 100644
--- a/tests/update/test-prefix-update-processor.cpp
+++ b/tests/update/test-prefix-update-processor.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2014-2017,  The University of Memphis,
+ * Copyright (c) 2014-2018,  The University of Memphis,
  *                           Regents of the University of California,
  *                           Arizona Board of Regents.
  *
@@ -117,6 +117,8 @@
     nlsr.getConfParameter().setSiteName("/edu/test-site");
     nlsr.getConfParameter().setRouterName("/%C1.Router/this-router");
     nlsr.getConfParameter().buildRouterPrefix();
+    // Otherwise code coverage node fails with default 60 seconds lifetime
+    nlsr.getConfParameter().setSyncInterestLifetime(1000);
 
     addIdentity(ndn::Name("/ndn/edu/test-site/%C1.Router/this-router"));