tests: stop using deprecated Block constructor
Change-Id: If50d5f0e2a4d6cef3a5e84e0f1da4a388b216233
diff --git a/tests/core/manager-base.t.cpp b/tests/core/manager-base.t.cpp
index 63bc2db..49f8b98 100644
--- a/tests/core/manager-base.t.cpp
+++ b/tests/core/manager-base.t.cpp
@@ -57,11 +57,7 @@
class ManagerTester : public ManagerBase
{
public:
- ManagerTester(Dispatcher& dispatcher,
- const std::string& module)
- : ManagerBase(dispatcher, module)
- {
- }
+ using ManagerBase::ManagerBase;
ndn::mgmt::Authorization
makeAuthorization(const std::string& verb) override
@@ -127,7 +123,8 @@
auto post = m_manager.registerNotificationStream("test-notification");
setTopPrefix("/localhost/nfd");
- post(Block("\x82\x01\x02", 3));
+ const uint8_t buf[] = {0x82, 0x01, 0x02};
+ post(Block(buf, sizeof(buf)));
advanceClocks(time::milliseconds(1));
BOOST_REQUIRE_EQUAL(m_responses.size(), 1);