tests: add FreshnessPeriod where MustBeFresh is used
refs #4913
Change-Id: I72366c3d84072bae61716b0cc229470124a2a0d5
diff --git a/tests/peek/ndnpeek.t.cpp b/tests/peek/ndnpeek.t.cpp
index e3fd5b3..332c2d2 100644
--- a/tests/peek/ndnpeek.t.cpp
+++ b/tests/peek/ndnpeek.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2018, Arizona Board of Regents.
+ * Copyright (c) 2014-2019, Arizona Board of Regents.
*
* This file is part of ndn-tools (Named Data Networking Essential Tools).
* See AUTHORS.md for complete list of ndn-tools authors and contributors.
@@ -173,6 +173,7 @@
initialize(options);
auto data = makeData(Name(options.name).append("suffix"));
+ data->setFreshnessPeriod(1_s);
std::string payload = "NdnPeekTest";
data->setContent(reinterpret_cast<const uint8_t*>(payload.data()), payload.size());