pingserver: add --quiet option
Change-Id: I7e61383e587044fd65a50e4dee58a020d3b292ad
Refs: #4673
diff --git a/tests/ping/server/ping-server.t.cpp b/tests/ping/server/ping-server.t.cpp
index 497d4d6..84e967f 100644
--- a/tests/ping/server/ping-server.t.cpp
+++ b/tests/ping/server/ping-server.t.cpp
@@ -48,12 +48,12 @@
makePingInterest(int seq) const
{
Name name(pingOptions.prefix);
- name.append("ping");
- name.append(std::to_string(seq));
- Interest interest(name);
- interest.setMustBeFresh(true);
- interest.setInterestLifetime(time::milliseconds(2000));
- return interest;
+ name.append("ping")
+ .append(to_string(seq));
+
+ return Interest(name)
+ .setMustBeFresh(true)
+ .setInterestLifetime(2_s);
}
private:
@@ -61,11 +61,12 @@
makeOptions()
{
Options opt;
- opt.prefix = "ndn:/test-prefix";
- opt.freshnessPeriod = time::milliseconds(5000);
+ opt.prefix = "/test-prefix";
+ opt.freshnessPeriod = 5_s;
opt.nMaxPings = 2;
- opt.wantTimestamp = false;
opt.payloadSize = 0;
+ opt.wantTimestamp = false;
+ opt.wantQuiet = true;
return opt;
}