tests: Remove FaceDestroyEvent test's reliance on nlsrSeqNo.txt
refs: #2881
Change-Id: I32d329d058e9715ca5cdca74867b6588775e93ff
diff --git a/tests/test-nlsr.cpp b/tests/test-nlsr.cpp
index 6f1af7d..4407a55 100644
--- a/tests/test-nlsr.cpp
+++ b/tests/test-nlsr.cpp
@@ -176,7 +176,8 @@
AdjLsa* lsa = lsdb.findAdjLsa(key);
BOOST_REQUIRE(lsa != nullptr);
- uint32_t lastAdjLsaSeqNo = nlsr.getSequencingManager().getAdjLsaSeq();
+ uint32_t lastAdjLsaSeqNo = lsa->getLsSeqNo();
+ nlsr.getSequencingManager().setAdjLsaSeq(lastAdjLsaSeqNo);
// Make sure the routing table was calculated
RoutingTableEntry* rtEntry = nlsr.getRoutingTable().findRoutingTableEntry(failNeighbor.getName());
@@ -203,7 +204,11 @@
BOOST_CHECK_EQUAL(updatedNeighbor.getInterestTimedOutNo(),
nlsr.getConfParameter().getInterestRetryNumber());
BOOST_CHECK_EQUAL(updatedNeighbor.getStatus(), Adjacent::STATUS_INACTIVE);
- BOOST_CHECK_EQUAL(nlsr.getSequencingManager().getAdjLsaSeq(), lastAdjLsaSeqNo + 1);
+
+ lsa = lsdb.findAdjLsa(key);
+ BOOST_REQUIRE(lsa != nullptr);
+
+ BOOST_CHECK_EQUAL(lsa->getLsSeqNo(), lastAdjLsaSeqNo + 1);
// Make sure the routing table was recalculated
rtEntry = nlsr.getRoutingTable().findRoutingTableEntry(failNeighbor.getName());