Skip to content

Commit

Permalink
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Browse files Browse the repository at this point in the history
…omments
  • Loading branch information
mohit-singh4 committed Oct 22, 2024
1 parent 1745693 commit 3e6be45
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ 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);
Expand All @@ -147,7 +145,7 @@ public void testPostAndGetFolderSizeDetails() throws Exception
String jobId = nodeSizeDetails.getJobId();
assertNotNull("In response, JobId should be present", jobId);

Thread.sleep(6000);
Thread.sleep(15000);

HttpResponse getResponse = getSingle(getNodeSizeDetailsUrl(folderB_Ref.getId(), jobId), null, 200);

Expand Down Expand Up @@ -206,7 +204,7 @@ public void testPerformanceTesting() throws Exception
String jobId = nodeSizeDetails.getJobId();
assertNotNull("In response, JobId should be present", jobId);

Thread.sleep(10000);
Thread.sleep(15000);

HttpResponse getResponse = getSingle(getNodeSizeDetailsUrl(parentFolder, jobId), null, 200);

Expand Down

0 comments on commit 3e6be45

Please sign in to comment.