mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
ACE-4347 "5.1 Build has had three transient failures related to locking"
Increase timeouts in JobLockServiceTest tests to account for slower database updates git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@117625 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -508,7 +508,8 @@ public class JobLockServiceTest extends TestCase
|
||||
|
||||
if (t==3)
|
||||
{
|
||||
long ttlLongerThanDefaultRetry = 300;
|
||||
// default num retries * default retry wait + time to create lock (pessimistic)
|
||||
long ttlLongerThanDefaultRetry = 10*20 + 2000;
|
||||
tokenB = jobLockService.getLock(lockA, ttlLongerThanDefaultRetry);
|
||||
}
|
||||
|
||||
@@ -528,7 +529,7 @@ public class JobLockServiceTest extends TestCase
|
||||
|
||||
callback.isActive = false;
|
||||
|
||||
Thread.sleep(40);
|
||||
Thread.sleep(1000); // need to make this quite long to account for slow database updates
|
||||
|
||||
assertEquals(true,callback.released);
|
||||
assertEquals(2,callback.isActiveCount);
|
||||
|
Reference in New Issue
Block a user