[jbosscache-commits] JBoss Cache SVN: r5462 - core/branches/1.4.X/tests/functional/org/jboss/cache/eviction.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Wed Mar 26 14:36:08 EDT 2008


Author: mircea.markus
Date: 2008-03-26 14:36:08 -0400 (Wed, 26 Mar 2008)
New Revision: 5462

Modified:
   core/branches/1.4.X/tests/functional/org/jboss/cache/eviction/LRUPolicyTest.java
Log:
fixed test failure, incresed sleeping time to allow eviction to kick in. 
Failed to : http://jboss.org/index.html?module=bb&op=viewtopic&t=132444

Modified: core/branches/1.4.X/tests/functional/org/jboss/cache/eviction/LRUPolicyTest.java
===================================================================
--- core/branches/1.4.X/tests/functional/org/jboss/cache/eviction/LRUPolicyTest.java	2008-03-26 18:28:09 UTC (rev 5461)
+++ core/branches/1.4.X/tests/functional/org/jboss/cache/eviction/LRUPolicyTest.java	2008-03-26 18:36:08 UTC (rev 5462)
@@ -386,6 +386,7 @@
 
       assertEquals(5000, ((LRUConfiguration) region.getEvictionConfiguration()).getMaxNodes());
       assertEquals(5, ((LRUConfiguration) region.getEvictionConfiguration()).getTimeToLiveSeconds());
+      assertEquals(wakeupIntervalMillis_, cache_.getEvictionThreadWakeupIntervalSeconds() * 1000);
 
       String rootStr = "/123/node";
       for (int i = 0; i < 10; i++)
@@ -396,7 +397,7 @@
 
       assertEquals(rootStr + "5", cache_.get(rootStr + "5", rootStr + "5"));
 
-      TestingUtil.sleepThread(2 * wakeupIntervalMillis_ + 2000);
+      TestingUtil.sleepThread(3 * wakeupIntervalMillis_  + 1000);
 
       assertNull("DataNode should be null", cache_.get(rootStr + "5"));
    }




More information about the jbosscache-commits mailing list