Skip to content

Commit

Permalink
Added: sleep call to getDownloadSize IT to ensure tab file is ingested
Browse files Browse the repository at this point in the history
  • Loading branch information
GPortas committed Oct 2, 2023
1 parent cbf00d7 commit 87c6515
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/edu/harvard/iq/dataverse/api/DatasetsIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -3708,6 +3708,9 @@ public void getDownloadSize() throws IOException, InterruptedException {
uploadTabularFileResponse = UtilIT.uploadFileViaNative(Integer.toString(datasetId), pathToTabularTestFile, Json.createObjectBuilder().build(), apiToken);
uploadTabularFileResponse.then().assertThat().statusCode(OK.getStatusCode());

// Ensure tabular file is ingested
Thread.sleep(2000);

// Get the total size including only original sizes and ignoring archival sizes for tabular files
expectedSizeIncludingOnlyOriginalForTabular = tabularOriginalSize + expectedSizeIncludingOnlyOriginalForTabular;

Expand Down

0 comments on commit 87c6515

Please sign in to comment.