From ed42c0003640e490126f7838ba3c3ee12fd6f5e5 Mon Sep 17 00:00:00 2001 From: mohit-singh4 Date: Mon, 21 Oct 2024 20:50:38 +0530 Subject: [PATCH] [feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review comments --- .../java/org/alfresco/rest/api/tests/NodeSizeDetailsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeSizeDetailsTest.java b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeSizeDetailsTest.java index 64fa1cceca7..09ceee2eef4 100644 --- a/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeSizeDetailsTest.java +++ b/remote-api/src/test/java/org/alfresco/rest/api/tests/NodeSizeDetailsTest.java @@ -132,6 +132,8 @@ public void testPostAndGetFolderSizeDetails() throws Exception String contentName = "content " + RUNID + ".txt"; String content1Id = createTextFile(folderB_Ref.getId(), contentName, "The quick brown fox jumps over the lazy dog.", "UTF-8", docProps).getId(); + Thread.sleep(5000); + HttpResponse response = getSingle(NodesEntityResource.class, content1Id, null, 200); Document documentResp = RestApiUtil.parseRestApiEntry(response.getJsonResponse(), Document.class); assertEquals("DocumentId must be equal", documentResp.getId(), content1Id); @@ -206,7 +208,7 @@ public void testPerformanceTesting() throws Exception String jobId = nodeSizeDetails.getJobId(); assertNotNull("In response, JobId should be present", jobId); - Thread.sleep(4000); + Thread.sleep(10000); HttpResponse getResponse = getSingle(getNodeSizeDetailsUrl(parentFolder, jobId), null, 200);