diff --git a/manpages/ndnpoke.rst b/manpages/ndnpoke.rst index d92ba43..f5ae345 100644 --- a/manpages/ndnpoke.rst +++ b/manpages/ndnpoke.rst @@ -50,6 +50,8 @@ Exit Status 2: Malformed command line +3: No Interests received before the timeout + 5: Prefix registration failed Example diff --git a/tests/peek/ndnpoke.t.cpp b/tests/peek/ndnpoke.t.cpp index 46f445d..cdcd262 100644 --- a/tests/peek/ndnpoke.t.cpp +++ b/tests/peek/ndnpoke.t.cpp @@ -195,7 +195,7 @@ BOOST_AUTO_TEST_CASE(Timeout) this->advanceClocks(io, 1_s, 4); - BOOST_CHECK(poke->getResult() == NdnPoke::Result::UNKNOWN); + BOOST_CHECK(poke->getResult() == NdnPoke::Result::TIMEOUT); BOOST_CHECK_EQUAL(face.sentData.size(), 0); // Check for prefix unregistration diff --git a/tools/peek/ndnpoke/ndnpoke.cpp b/tools/peek/ndnpoke/ndnpoke.cpp index e6730cf..0d04efa 100644 --- a/tools/peek/ndnpoke/ndnpoke.cpp +++ b/tools/peek/ndnpoke/ndnpoke.cpp @@ -61,6 +61,7 @@ NdnPoke::start() }, [this] (auto&&) { m_timeoutEvent = m_scheduler.schedule(m_options.timeout, [this] { + m_result = Result::TIMEOUT; m_registeredPrefix.cancel(); }); },