core: delete deprecated getGlobalScheduler() API
refs #1290
Change-Id: If994e3bd303f0788d8e945351c182bbd4ab5e0b2
diff --git a/tests/core/limited-io.cpp b/tests/core/limited-io.cpp
index 1eba63d..a7b1115 100644
--- a/tests/core/limited-io.cpp
+++ b/tests/core/limited-io.cpp
@@ -5,7 +5,6 @@
*/
#include "limited-io.hpp"
-#include "core/logger.hpp"
namespace nfd {
namespace tests {
@@ -26,13 +25,13 @@
{
BOOST_ASSERT(!m_isRunning);
m_isRunning = true;
-
+
m_reason = NO_WORK;
m_nOpsRemaining = nOpsLimit;
if (nTimeLimit >= time::nanoseconds::zero()) {
m_timeout = scheduler::schedule(nTimeLimit, bind(&LimitedIo::afterTimeout, this));
}
-
+
try {
getGlobalIoService().run();
}
@@ -41,7 +40,7 @@
NFD_LOG_ERROR("g_io.run() exception: " << ex.what());
m_lastException = ex;
}
-
+
getGlobalIoService().reset();
scheduler::cancel(m_timeout);
m_isRunning = false;