Revert "sync: remove check-for-self in sync updates"
This reverts commit b23f279353a14ce53a454d78ae8f069935187b86.
Change-Id: I8630be544195a01e09b3a2e4d85d102ac00cfc72
refs: #4134
diff --git a/tests/test-sync-logic-handler.cpp b/tests/test-sync-logic-handler.cpp
index a6b054a..76ca830 100644
--- a/tests/test-sync-logic-handler.cpp
+++ b/tests/test-sync-logic-handler.cpp
@@ -168,6 +168,19 @@
}
}
+BOOST_AUTO_TEST_CASE(NoUpdateForSelf)
+{
+ for (const std::string& lsaType : lsaTypes) {
+ std::string updateName = nlsr.getConfParameter().getLsaPrefix().toUri() +
+ CONFIG_SITE + CONFIG_ROUTER_NAME + lsaType;
+
+ receiveUpdate(updateName, 1, sync);
+
+ std::vector<ndn::Interest>& interests = face->sentInterests;
+ BOOST_CHECK_EQUAL(interests.size(), 0);
+ }
+}
+
BOOST_AUTO_TEST_CASE(MalformedUpdate)
{
for (const std::string& lsaType : lsaTypes) {