Skip to content

Commit

Permalink
Changed: using the known size of the tab file in IT instead of obtain…
Browse files Browse the repository at this point in the history
…ing it from response
  • Loading branch information
GPortas committed Oct 3, 2023
1 parent 4561e83 commit 47da5a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/java/edu/harvard/iq/dataverse/api/DatasetsIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -3668,8 +3668,7 @@ public void getDownloadSize() throws IOException, InterruptedException {
Response uploadTabularFileResponse = UtilIT.uploadFileViaNative(Integer.toString(datasetId), pathToTabularTestFile, Json.createObjectBuilder().build(), apiToken);
uploadTabularFileResponse.then().assertThat().statusCode(OK.getStatusCode());

// Get the original tabular file size
int tabularOriginalSize = Integer.parseInt(uploadTabularFileResponse.getBody().jsonPath().getString("data.files[0].dataFile.filesize"));
int tabularOriginalSize = 157;

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

0 comments on commit 47da5a4

Please sign in to comment.