Skip to content

Commit

Permalink
add sleep to SwordIT per qqmyers
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Sizemore committed Jan 30, 2024
1 parent fc28b37 commit 2eeda3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/edu/harvard/iq/dataverse/api/SwordIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ public void testDeleteFiles() {
List<String> oneFileLeftInV2Draft = statement3.getBody().xmlPath().getList("feed.entry.id");
logger.info("Number of files remaining in this post version 1 draft:" + oneFileLeftInV2Draft.size());
assertEquals(1, oneFileLeftInV2Draft.size());

UtilIT.sleepForLock(datasetPersistentId, "EditInProgress", apiToken, UtilIT.MAXIMUM_PUBLISH_LOCK_DURATION);
Response deleteIndex1b = UtilIT.deleteFile(Integer.parseInt(index1b), apiToken);
deleteIndex1b.then().assertThat()
.statusCode(NO_CONTENT.getStatusCode());
Expand Down

0 comments on commit 2eeda3d

Please sign in to comment.