mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
124729 jvonka: RA-773: Try bumping retry count for async rendition creation on build m/c (SharedLinkApiTest) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126578 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -419,7 +419,7 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected static final long PAUSE_TIME = 5000; //millisecond
|
protected static final long PAUSE_TIME = 5000; //millisecond
|
||||||
protected static final int MAX_RETRY = 10;
|
protected static final int MAX_RETRY = 20;
|
||||||
|
|
||||||
protected Rendition waitAndGetRendition(String userId, String sourceNodeId, String renditionId) throws Exception
|
protected Rendition waitAndGetRendition(String userId, String sourceNodeId, String renditionId) throws Exception
|
||||||
{
|
{
|
||||||
@@ -439,6 +439,8 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi
|
|||||||
// If the asynchronous create rendition action is not finished yet,
|
// If the asynchronous create rendition action is not finished yet,
|
||||||
// wait for 'PAUSE_TIME' and try again.
|
// wait for 'PAUSE_TIME' and try again.
|
||||||
retryCount++;
|
retryCount++;
|
||||||
|
|
||||||
|
System.out.println("waitAndGetRendition: "+retryCount);
|
||||||
Thread.sleep(PAUSE_TIME);
|
Thread.sleep(PAUSE_TIME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -465,6 +467,8 @@ public abstract class AbstractBaseApiTest extends EnterpriseTestApi
|
|||||||
// If no transformer is currently available,
|
// If no transformer is currently available,
|
||||||
// wait for 'PAUSE_TIME' and try again.
|
// wait for 'PAUSE_TIME' and try again.
|
||||||
retryCount++;
|
retryCount++;
|
||||||
|
|
||||||
|
System.out.println("waitAndGetRendition: "+retryCount);
|
||||||
Thread.sleep(PAUSE_TIME);
|
Thread.sleep(PAUSE_TIME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -13,8 +13,9 @@ import org.junit.runners.Suite;
|
|||||||
@RunWith(Suite.class)
|
@RunWith(Suite.class)
|
||||||
@Suite.SuiteClasses({
|
@Suite.SuiteClasses({
|
||||||
NodeApiTest.class,
|
NodeApiTest.class,
|
||||||
SharedLinkApiTest.class,
|
|
||||||
QueriesApiTest.class,
|
QueriesApiTest.class,
|
||||||
|
RenditionsTest.class,
|
||||||
|
SharedLinkApiTest.class,
|
||||||
ActivitiesPostingTest.class,
|
ActivitiesPostingTest.class,
|
||||||
TestSites.class,
|
TestSites.class,
|
||||||
TestNodeComments.class,
|
TestNodeComments.class,
|
||||||
@@ -34,8 +35,7 @@ import org.junit.runners.Suite;
|
|||||||
TestRemovePermissions.class,
|
TestRemovePermissions.class,
|
||||||
TestPublicApi128.class,
|
TestPublicApi128.class,
|
||||||
TestPublicApiCaching.class,
|
TestPublicApiCaching.class,
|
||||||
ModulePackagesApiTest.class,
|
ModulePackagesApiTest.class
|
||||||
RenditionsTest.class
|
|
||||||
})
|
})
|
||||||
public class ApiTest
|
public class ApiTest
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user