tests: add FreshnessPeriod where MustBeFresh is used

refs #4913

Change-Id: I72366c3d84072bae61716b0cc229470124a2a0d5
diff --git a/tests/chunks/discover-version.t.cpp b/tests/chunks/discover-version.t.cpp
index 266bcf5..25754fd 100644
--- a/tests/chunks/discover-version.t.cpp
+++ b/tests/chunks/discover-version.t.cpp
@@ -142,6 +142,7 @@
 
   // Send back an invalid metadata packet
   Data data(face.sentInterests.back().getName());
+  data.setFreshnessPeriod(1_s);
   data.setContentType(tlv::ContentType_Key);
   face.receive(signData(data));