db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker ObjectCacheTest.java
Date Sat, 13 Dec 2003 19:16:53 GMT
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


Mime
View raw message