From 818bcb09f324e7f42a3ba7e96bfa876f6b97e00d Mon Sep 17 00:00:00 2001 From: Damian Ujma Date: Mon, 27 May 2024 14:01:49 +0200 Subject: [PATCH] ACS-7587 Fix intermittent failure --- .../alfresco/rest/rm/community/hold/AddToHoldsBulkV1Tests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/hold/AddToHoldsBulkV1Tests.java b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/hold/AddToHoldsBulkV1Tests.java index e8e87425a9..11cb4d4eb1 100644 --- a/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/hold/AddToHoldsBulkV1Tests.java +++ b/amps/ags/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/hold/AddToHoldsBulkV1Tests.java @@ -342,6 +342,9 @@ public class AddToHoldsBulkV1Tests extends BaseRMRestTest await().atMost(20, TimeUnit.SECONDS).until( () -> getRestAPIFactory().getHoldsAPI(getAdminUser()).getChildren(hold2.getId()).getEntries().size() == NUMBER_OF_FILES - 1); + await().atMost(20, TimeUnit.SECONDS).until( + () -> getRestAPIFactory().getHoldsAPI(userAddHoldPermission) + .getBulkStatus(hold2.getId(), bulkOperationEntry.getBulkStatusId()).getStatus() == Status.DONE); List holdChildrenNodeRefs = getRestAPIFactory().getHoldsAPI(userAddHoldPermission) .getChildren(hold2.getId()).getEntries().stream().map(HoldChildEntry::getEntry).map( HoldChild::getId).toList();