tests: set CanBePrefix in TestSegmentPublisher
refs #4581
Change-Id: I60aac2c2c3bb1f8dee3fbab4530999121fa76204
diff --git a/tests/test-segment-publisher.cpp b/tests/test-segment-publisher.cpp
index 358e1f2..87c27a9 100644
--- a/tests/test-segment-publisher.cpp
+++ b/tests/test-segment-publisher.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2018, The University of Memphis
+ * Copyright (c) 2014-2019, The University of Memphis
*
* This file is part of PSync.
* See AUTHORS.md for complete list of PSync authors and contributors.
@@ -126,7 +126,7 @@
BOOST_CHECK_EQUAL(numRepliesFromStore, 2);
numRepliesFromStore = 0;
- face.expressInterest(Interest(Name("/hello/world/")),
+ face.expressInterest(Interest("/hello/world/").setCanBePrefix(true),
[this] (const Interest& interest, const Data& data) {
numComplete++;
},
@@ -159,4 +159,4 @@
BOOST_AUTO_TEST_SUITE_END()
-} // namespace psync
\ No newline at end of file
+} // namespace psync