From 1910d6b73776e1573ea793427ef90c9d482bc1bb Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Mon, 2 Nov 2009 11:18:43 +0000 Subject: [PATCH] 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 --- source/java/org/alfresco/wcm/AbstractWCMServiceImplTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/java/org/alfresco/wcm/AbstractWCMServiceImplTest.java b/source/java/org/alfresco/wcm/AbstractWCMServiceImplTest.java index 0cf454e10d..af10a05d04 100644 --- a/source/java/org/alfresco/wcm/AbstractWCMServiceImplTest.java +++ b/source/java/org/alfresco/wcm/AbstractWCMServiceImplTest.java @@ -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); } } }