Skip to content

Commit

Permalink
another sleep delay before an attempt to publish a test dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Apr 18, 2019
1 parent 86567ca commit 42e77e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/edu/harvard/iq/dataverse/api/SearchIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,13 @@ public void testIdentifier() {
publishDataverse.then().assertThat()
.statusCode(OK.getStatusCode());

// 3 second sleep, to allow the indexing to finish:
try {
Thread.sleep(3000l);
} catch (InterruptedException iex) {
logger.info("WARNING: failed to execute 3 second sleep");
}

Response publishDataset = UtilIT.publishDatasetViaNativeApi(datasetPid, "major", apiToken);
publishDataset.then().assertThat()
.statusCode(OK.getStatusCode());
Expand Down

0 comments on commit 42e77e1

Please sign in to comment.