mirror of https://github.com/aria2/aria2
TimeTest: Fix testElapsed() fail occasionally
parent
0d0a8a1c35
commit
95843a5fe6
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue