tests: drop redundant calls to Interest::setCanBePrefix(false)
Change-Id: I6afd1028ab370633c64a74ab4310396dab3c8a03
diff --git a/tests/daemon/face/generic-link-service.t.cpp b/tests/daemon/face/generic-link-service.t.cpp
index a11d524..219154e 100644
--- a/tests/daemon/face/generic-link-service.t.cpp
+++ b/tests/daemon/face/generic-link-service.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2020, Regents of the University of California,
+ * Copyright (c) 2014-2022, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -559,7 +559,6 @@
initialize(options);
Interest interest("/test/prefix");
- interest.setCanBePrefix(false);
lp::Packet pkt1;
pkt1.add<lp::FragmentField>({interest.wireEncode().begin(), interest.wireEncode().end()});
pkt1.add<lp::SequenceField>(7);
diff --git a/tests/daemon/face/lp-reliability.t.cpp b/tests/daemon/face/lp-reliability.t.cpp
index ff1acc3..e3a84c9 100644
--- a/tests/daemon/face/lp-reliability.t.cpp
+++ b/tests/daemon/face/lp-reliability.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2020, Regents of the University of California,
+ * Copyright (c) 2014-2022, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -54,7 +54,6 @@
{
if (frags.front().has<lp::FragmentField>()) {
Interest interest("/test/prefix");
- interest.setCanBePrefix(false);
lp::Packet pkt;
pkt.add<lp::FragmentField>({interest.wireEncode().begin(), interest.wireEncode().end()});
assignSequences(frags);
@@ -994,7 +993,6 @@
BOOST_AUTO_TEST_CASE(DropDuplicateReceivedSequence)
{
Interest interest("/test/prefix");
- interest.setCanBePrefix(false);
lp::Packet pkt1;
pkt1.add<lp::FragmentField>({interest.wireEncode().begin(), interest.wireEncode().end()});
pkt1.add<lp::SequenceField>(7);
diff --git a/tests/other/cs-benchmark.cpp b/tests/other/cs-benchmark.cpp
index 18c9f05..fe4eeaa 100644
--- a/tests/other/cs-benchmark.cpp
+++ b/tests/other/cs-benchmark.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2021, Regents of the University of California,
+ * Copyright (c) 2014-2022, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -112,9 +112,7 @@
std::vector<shared_ptr<Interest>> workload(count);
for (size_t i = 0; i < count; ++i) {
Name name = genName(i);
- auto interest = std::make_shared<Interest>(name);
- interest->setCanBePrefix(false);
- workload[i] = interest;
+ workload[i] = std::make_shared<Interest>(name);
}
return workload;
}
diff --git a/tests/tools/ndn-autoconfig-server/program.t.cpp b/tests/tools/ndn-autoconfig-server/program.t.cpp
index e4268a0..96bed31 100644
--- a/tests/tools/ndn-autoconfig-server/program.t.cpp
+++ b/tests/tools/ndn-autoconfig-server/program.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2020, Regents of the University of California,
+ * Copyright (c) 2014-2022, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -76,7 +76,6 @@
// interest2 asks for a different version, and should not be responded
Interest interest2(Name(interest.getName()).appendVersion(dataName.at(-1).toVersion() - 1));
- interest2.setCanBePrefix(false);
face.receive(interest2);
face.processEvents(1_s);
BOOST_CHECK_EQUAL(face.sentData.size(), 1);