openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r1077978 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java
Date Fri, 04 Mar 2011 14:48:40 GMT
Author: mikedd
Date: Fri Mar  4 14:48:39 2011
New Revision: 1077978

URL: http://svn.apache.org/viewvc?rev=1077978&view=rev
Log:
increase retries and sleep time for intermittently failing testcase

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java?rev=1077978&r1=1077977&r2=1077978&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/CacheTest.java
Fri Mar  4 14:48:39 2011
@@ -938,7 +938,7 @@ public abstract class CacheTest extends 
     }
 
     public void testTimeouts1() throws Exception {
-        timeoutsTest1(1);
+        timeoutsTest1(30);
     }
 
     public void timeoutsTest1(int tries) throws Exception {
@@ -1061,7 +1061,7 @@ public abstract class CacheTest extends 
                 getLog().warn("CacheTest.timeoutsHelper() skipping sleep for checkCache(h=500)
because sleep="+sleep);
             } else if (sleep > 10) {
                 getLog().info("CacheTest.timeoutsHelper() testing h to be dropped by waiting
sleep="+sleep);
-                Thread.currentThread().sleep(sleep);
+                Thread.currentThread().sleep(700);
                 Thread.yield();
             } else {
                 sleep = 0;



Mime
View raw message