mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
ACS-9690 Fix unstable AddToHoldsBulkV1Tests (#3382)
Co-authored-by: Belal Ansari <belal.ansari@hyland.com>
This commit is contained in:
@@ -134,6 +134,16 @@ public class AddToHoldsBulkV1Tests extends BaseRMRestTest
|
|||||||
.until(() -> getRestAPIFactory().getSearchAPI(null).search(searchRequest).getPagination()
|
.until(() -> getRestAPIFactory().getSearchAPI(null).search(searchRequest).getPagination()
|
||||||
.getTotalItems() == NUMBER_OF_FILES);
|
.getTotalItems() == NUMBER_OF_FILES);
|
||||||
|
|
||||||
|
RestRequestQueryModel ancestorReq = getContentFromFolderAndAllSubfoldersQuery(rootFolder.getNodeRefWithoutVersion());
|
||||||
|
SearchRequest ancestorSearchRequest = new SearchRequest();
|
||||||
|
ancestorSearchRequest.setQuery(ancestorReq);
|
||||||
|
|
||||||
|
STEP("Wait until paths are indexed.");
|
||||||
|
// to improve stability on CI - seems that sometimes during big load we need to wait longer for the condition
|
||||||
|
await().atMost(120, TimeUnit.SECONDS)
|
||||||
|
.until(() -> getRestAPIFactory().getSearchAPI(null).search(ancestorSearchRequest).getPagination()
|
||||||
|
.getTotalItems() == NUMBER_OF_FILES);
|
||||||
|
|
||||||
holdBulkOperation = HoldBulkOperation.builder()
|
holdBulkOperation = HoldBulkOperation.builder()
|
||||||
.query(queryReq)
|
.query(queryReq)
|
||||||
.op(HoldBulkOperationType.ADD).build();
|
.op(HoldBulkOperationType.ADD).build();
|
||||||
|
Reference in New Issue
Block a user