ACS-9578 Improve stability in AddToHoldsBulkV1Tests (#3355)

(cherry picked from commit d163410e3d)
This commit is contained in:
Gerard Olenski
2025-05-16 16:30:55 +02:00
committed by Gerard Olenski
parent bbae71658d
commit 558f117f24

View File

@@ -139,7 +139,8 @@ public class AddToHoldsBulkV1Tests extends BaseRMRestTest
ancestorSearchRequest.setQuery(ancestorReq);
STEP("Wait until paths are indexed.");
await().atMost(30, TimeUnit.SECONDS)
// 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);