mirror of https://github.com/aria2/aria2
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Wait 2 seconds. 1 second is sometimes not enough. * test/TimeSeedCriteriaTest.ccpull/1/head
parent
900d102bbf
commit
d63308afc5
|
@ -1,3 +1,8 @@
|
|||
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Wait 2 seconds. 1 second is sometimes not enough.
|
||||
* test/TimeSeedCriteriaTest.cc
|
||||
|
||||
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Use localhost instead of 127.0.0.1.
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#include "TimeSeedCriteria.h"
|
||||
#include "Util.h"
|
||||
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
#include "Util.h"
|
||||
|
||||
namespace aria2 {
|
||||
|
||||
class TimeSeedCriteriaTest:public CppUnit::TestFixture {
|
||||
|
@ -19,7 +21,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION(TimeSeedCriteriaTest);
|
|||
|
||||
void TimeSeedCriteriaTest::testEvaluate() {
|
||||
TimeSeedCriteria cri(1);
|
||||
Util::sleep(1);
|
||||
// Seel 2seconds. 1 seconds are not enough in some systems.
|
||||
Util::sleep(2);
|
||||
CPPUNIT_ASSERT(cri.evaluate());
|
||||
cri.reset();
|
||||
cri.setDuration(10);
|
||||
|
|
Loading…
Reference in New Issue