tests: fix Interest name in face integration test
Refs: #4567
Change-Id: I6886c93695c563dbcba2feb0706e6459d0176154
diff --git a/tests/integrated/face.cpp b/tests/integrated/face.cpp
index aac5443..a263382 100644
--- a/tests/integrated/face.cpp
+++ b/tests/integrated/face.cpp
@@ -55,7 +55,7 @@
std::string output;
char buf[256];
FILE* pipe = popen(cmd.data(), "r");
- BOOST_REQUIRE_MESSAGE(pipe != nullptr, "cannot execute '" << cmd << "'");
+ BOOST_REQUIRE_MESSAGE(pipe != nullptr, "popen(" << cmd << ")");
while (fgets(buf, sizeof(buf), pipe) != nullptr) {
output += buf;
}
@@ -113,8 +113,8 @@
protected:
Face face;
- Scheduler sched;
unique_ptr<Face> face2;
+ Scheduler sched;
};
using Transports = boost::mpl::vector<UnixTransport, TcpTransport>;
@@ -126,7 +126,7 @@
BOOST_FIXTURE_TEST_CASE_TEMPLATE(ExpressInterestData, TransportType, Transports, FaceFixture<TransportType>)
{
int nData = 0;
- this->face.expressInterest(*makeInterest("/", true),
+ this->face.expressInterest(*makeInterest("/localhost", true),
[&] (const Interest&, const Data&) { ++nData; },
[] (const Interest&, const lp::Nack&) { BOOST_ERROR("unexpected Nack"); },
[] (const Interest&) { BOOST_ERROR("unexpected timeout"); });