Avoid deprecated ndn-cxx functions
Change-Id: I763368c2ea12902b4ea400f92c23b17ad5a5628e
diff --git a/tests/update/test-advertise-crash.cpp b/tests/update/test-advertise-crash.cpp
index 09a27d7..8925469 100644
--- a/tests/update/test-advertise-crash.cpp
+++ b/tests/update/test-advertise-crash.cpp
@@ -83,7 +83,7 @@
ndn::nfd::ControlParameters parameters;
parameters.setName("/prefix/to/advertise");
ndn::Name advertiseCommand("/localhost/nlsr/prefix-update/advertise");
- advertiseCommand.append(parameters.wireEncode());
+ advertiseCommand.append(ndn::tlv::GenericNameComponent, parameters.wireEncode());
auto advertiseInterest = std::make_shared<ndn::Interest>(advertiseCommand);
face.receive(*advertiseInterest);