src/lsa-segment-storage: fix convergence w/o content store
refs: #4430
Change-Id: I5124e9fd49bd9850c904c31d221b42b4249553a3
diff --git a/tests/publisher/test-segment-publisher.cpp b/tests/publisher/test-segment-publisher.cpp
index e1a7232..a70e57f 100644
--- a/tests/publisher/test-segment-publisher.cpp
+++ b/tests/publisher/test-segment-publisher.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2017, Regents of the University of California,
+ * Copyright (c) 2014-2018, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -110,8 +110,8 @@
m_buffer.appendByteArray(payload.value(), payload.value_size());
// uint64_t segmentNo = data.getName()[-1].toSegment();
- if (data.getFinalBlockId() != data.getName()[-1]) {
- return;
+ if (data.getFinalBlock().value_or(ndn::name::Component("")) != data.getName()[-1]) {
+ return;
}
// wrap data in a single Content TLV for easy parsing