core: global io_service and scheduler
Scheduler and time are imported from ndn-cpp-dev.
Forwarder is using the new scheduler API.
Face system is not transitioned yet.
refs #1290
Change-Id: I5679cb50bbf9890a105f663b038f13951403c2b6
diff --git a/tests/table/measurements.cpp b/tests/table/measurements.cpp
index 09874a0..4643fb8 100644
--- a/tests/table/measurements.cpp
+++ b/tests/table/measurements.cpp
@@ -14,13 +14,13 @@
BOOST_AUTO_TEST_CASE(Get_Parent)
{
+ resetGlobalIoService();
+ Measurements measurements;
+
Name name0;
Name nameA ("ndn:/A");
Name nameAB("ndn:/A/B");
- boost::asio::io_service ioService;
- Measurements measurements(ioService);
-
shared_ptr<measurements::Entry> entryAB = measurements.get(nameAB);
BOOST_REQUIRE(static_cast<bool>(entryAB));
BOOST_CHECK_EQUAL(entryAB->getName(), nameAB);