explicitly set CanBePrefix where needed
refs #4582
Change-Id: If79d8042502c4370197ca2f04c9acebb97261390
diff --git a/tests/unit/daemon/name-server.t.cpp b/tests/unit/daemon/name-server.t.cpp
index 4ad5a11..6378f43 100644
--- a/tests/unit/daemon/name-server.t.cpp
+++ b/tests/unit/daemon/name-server.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-2021, Regents of the University of California.
*
* This file is part of NDNS (Named Data Networking Domain Name Service).
* See AUTHORS.md for complete list of NDNS authors and contributors.
@@ -133,7 +133,7 @@
BOOST_CHECK_EQUAL(nDataBack, 2);
// explicit interest with correct version
- face.receive(Interest(m_cert.getName()));
+ face.receive(Interest(m_cert.getName()).setCanBePrefix(false));
face.onSendData.connectSingleShot([&] (const Data& data) {
++nDataBack;
@@ -149,7 +149,7 @@
// explicit interest with wrong version
Name wrongName = m_cert.getName().getPrefix(-1);
wrongName.appendVersion();
- face.receive(Interest(wrongName));
+ face.receive(Interest(wrongName).setCanBePrefix(false));
face.onSendData.connectSingleShot([&] (const Data& data) {
++nDataBack;