mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
17280: WCM test suite - increase max number of poll attempts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17284 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -62,7 +62,7 @@ public class AbstractWCMServiceImplTest extends TestCase
|
||||
private static final String SUBMIT_CONFIG_LOCATION = "classpath:wcm/wcm-jbpm-context.xml";
|
||||
|
||||
protected static final long POLL_DELAY = 1500L; // (in millis) 1.5s
|
||||
protected static final int POLL_MAX_ATTEMPTS = 5;
|
||||
protected static final int POLL_MAX_ATTEMPTS = 10;
|
||||
|
||||
// note: all tests share same context (when run via WCMTestSuite)
|
||||
protected static ApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] {ApplicationContextHelper.CONFIG_LOCATIONS[0], SUBMIT_CONFIG_LOCATION, PREVIEW_CONFIG_LOCATION});;
|
||||
@@ -211,7 +211,7 @@ public class AbstractWCMServiceImplTest extends TestCase
|
||||
|
||||
if (attempts > POLL_MAX_ATTEMPTS)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Too many poll attempts");
|
||||
throw new AlfrescoRuntimeException("Too many poll attempts: "+attempts);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user