ACS-9578 Improve stability in AddToHoldsBulkV1Tests (#3355)

This commit is contained in:
Gerard Olenski
2025-05-16 16:30:55 +02:00
committed by GitHub
parent 9ca251edba
commit d163410e3d

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);