mirror of
https://github.com/apache/openjpa.git
synced 2025-02-07 10:39:00 +00:00
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:
parent
a7ea4af7ab
commit
3bf746616b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user