TimeTest: Fix testElapsed() fail occasionally

pull/150/head
Tatsuhiro Tsujikawa 2013-10-20 22:57:12 +09:00
parent 0d0a8a1c35
commit 95843a5fe6
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ void TimeTest::testElapsed()
CPPUNIT_ASSERT(!Time(tv).elapsed(1));
}
{
struct timeval tv = { now.tv_sec-1, now.tv_usec };
struct timeval tv = { now.tv_sec-2, now.tv_usec };
CPPUNIT_ASSERT(Time(tv).elapsed(1));
}
}