increase retries and sleep time for intermittently failing testcase

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1079577 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2011-03-08 22:20:25 +00:00
parent a7ea4af7ab
commit 3bf746616b

View File

@ -938,7 +938,7 @@ public abstract class CacheTest extends AbstractTestCase {
}
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 AbstractTestCase {
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;