tests: set CanBePrefix in TestSegmentPublisher

refs #4581

Change-Id: I60aac2c2c3bb1f8dee3fbab4530999121fa76204
This commit is contained in:
Junxiao Shi committed 2019-01-13 23:19:23 +00:00
1 parent 10a90fff54
commit 3426baff27
1 file changed
+3 -3
+3 -3
View File
@@ -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_AUTO_TEST_CASE(Basic)
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_CASE(LargerDataName)
BOOST_AUTO_TEST_SUITE_END()
} // namespace psync
} // namespace psync