You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by th...@apache.org on 2003/12/13 20:16:53 UTC
cvs commit: db-ojb/src/test/org/apache/ojb/broker ObjectCacheTest.java
thma 2003/12/13 11:16:53
Modified: src/test/org/apache/ojb/broker ObjectCacheTest.java
Log:
don't be too strict with timeout settings. Java is not a realtime language...
Revision Changes Path
1.11 +3 -3 db-ojb/src/test/org/apache/ojb/broker/ObjectCacheTest.java
Index: ObjectCacheTest.java
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ObjectCacheTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ObjectCacheTest.java 9 Dec 2003 13:46:46 -0000 1.10
+++ ObjectCacheTest.java 13 Dec 2003 19:16:53 -0000 1.11
@@ -120,7 +120,7 @@
bool = bool && cache.lookup(oid_3) != null;
assertFalse("We should not found all cached objects", bool);
// idle time is 2 sec
- Thread.sleep(2500);
+ Thread.sleep(5000);
assertNull(cache.lookup(oid_1));
assertNull(cache.lookup(oid_2));
assertNull(cache.lookup(oid_3));
@@ -149,7 +149,7 @@
obj = (TestObjectDefaultCache) broker.serviceObjectCache().lookup(oid);
assertNotNull(obj);
- Thread.sleep(1000);
+ Thread.sleep(5000);
obj = (TestObjectDefaultCache) broker.serviceObjectCache().lookup(oid);
assertNull(obj);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org