fw: use UnitTestClock in Forwarder persistent loop test case
refs #2162
Change-Id: Ibbf1d5fa615e4275a86caf64f79890d40cb09a77
diff --git a/tests/limited-io.cpp b/tests/limited-io.cpp
index 9df197c..d6280c9 100644
--- a/tests/limited-io.cpp
+++ b/tests/limited-io.cpp
@@ -41,7 +41,7 @@
}
LimitedIo::StopReason
-LimitedIo::run(int nOpsLimit, const time::nanoseconds& nTimeLimit)
+LimitedIo::run(int nOpsLimit, const time::nanoseconds& timeLimit)
{
BOOST_ASSERT(!m_isRunning);
@@ -53,8 +53,8 @@
m_reason = NO_WORK;
m_nOpsRemaining = nOpsLimit;
- if (nTimeLimit >= time::nanoseconds::zero()) {
- m_timeout = scheduler::schedule(nTimeLimit, bind(&LimitedIo::afterTimeout, this));
+ if (timeLimit >= time::nanoseconds::zero()) {
+ m_timeout = scheduler::schedule(timeLimit, bind(&LimitedIo::afterTimeout, this));
}
try {