tests: DummyStrategy forwards specific Interest
refs #1756
Change-Id: I252364ef75f5a74e61828e35385c272b1a8b4581
diff --git a/tests/daemon/fw/dummy-strategy.hpp b/tests/daemon/fw/dummy-strategy.hpp
index 737d031..08d10b0 100644
--- a/tests/daemon/fw/dummy-strategy.hpp
+++ b/tests/daemon/fw/dummy-strategy.hpp
@@ -49,7 +49,7 @@
/** \brief after receive Interest trigger
*
- * If \p interestOutFace is not null, send Interest action is invoked with that face;
+ * If \p interestOutFace is not null, Interest is forwarded to that face via send Interest action;
* otherwise, reject pending Interest action is invoked.
*/
virtual void
@@ -58,8 +58,8 @@
{
++afterReceiveInterest_count;
- if (interestOutFace) {
- this->sendInterest(pitEntry, *interestOutFace);
+ if (interestOutFace != nullptr) {
+ this->sendInterest(pitEntry, *interestOutFace, interest);
}
else {
this->rejectPendingInterest(pitEntry);