Skip to content

Commit

Permalink
add waitForLock
Browse files Browse the repository at this point in the history
  • Loading branch information
lubitchv committed Mar 31, 2022
1 parent 3cf56e8 commit fe9e7e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -1806,6 +1806,8 @@ public void testAddFileToDatasetSkipTabIngest() throws IOException, InterruptedE
logger.info(r.prettyPrint());
assertEquals(200, r.getStatusCode());

assertTrue("Failed test if Ingest Lock exceeds max duration " + pathToFile, UtilIT.sleepForLock(datasetIdInt, "Ingest", apiToken, UtilIT.MAXIMUM_INGEST_LOCK_DURATION));

Long dataFileId = JsonPath.from(r.body().asString()).getLong("data.files[0].dataFile.id");
Response fileMeta = UtilIT.getDataFileMetadataDraft(dataFileId, apiToken);
String label = JsonPath.from(fileMeta.body().asString()).getString("label");
Expand Down

0 comments on commit fe9e7e6

Please sign in to comment.