[jbosscache-commits] JBoss Cache SVN: r7497 - core/trunk/src/test/java/org/jboss/cache/eviction.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Sun Jan 18 11:14:58 EST 2009


Author: mircea.markus
Date: 2009-01-18 11:14:57 -0500 (Sun, 18 Jan 2009)
New Revision: 7497

Modified:
   core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java
Log:
this depends havily on time, use success rate as this might fail every now and then

Modified: core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java	2009-01-18 15:59:49 UTC (rev 7496)
+++ core/trunk/src/test/java/org/jboss/cache/eviction/ExpirationPolicyTest.java	2009-01-18 16:14:57 UTC (rev 7497)
@@ -68,6 +68,8 @@
       cache = null;
    }
 
+
+   @Test (invocationCount = 3, successPercentage = 60)
    public void testUpdateToFuture() throws Exception
    {
       future = System.currentTimeMillis() + 2500;
@@ -94,7 +96,6 @@
       }
    }
 
-   @Test
    public void testEviction() throws Exception
    {
       cache.put(fqn1, ExpirationAlgorithmConfig.EXPIRATION_KEY, future);




More information about the jbosscache-commits mailing list