interest: Allow in-wire refreshing of Interest's nonce
Change-Id: I47500fce16a1d37af865d3f9dab59355d6108c95
Refs: #1758
diff --git a/tests/unit-tests/test-interest.cpp b/tests/unit-tests/test-interest.cpp
index 2f465ae..82bf8bd 100644
--- a/tests/unit-tests/test-interest.cpp
+++ b/tests/unit-tests/test-interest.cpp
@@ -351,6 +351,11 @@
"ndn.ChildSelector=1&ndn.Scope=1&"
"ndn.InterestLifetime=1000&"
"ndn.Nonce=2&ndn.Exclude=alex,xxxx,*,yyyy");
+
+ i.refreshNonce();
+ BOOST_CHECK_EQUAL(i.hasWire(), true);
+ BOOST_CHECK_EQUAL(originalWire, i.wireEncode().wire());
+ BOOST_CHECK_NE(i.getNonce(), 2);
}
BOOST_AUTO_TEST_CASE(EncodeWithLocalHeader)