Skip to content

Commit

Permalink
add disabled test for ConcurrentModificationException #4124 #4139
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Oct 18, 2017
1 parent 40dce08 commit fa3bc31
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,16 @@ public void testCuratorSendsCommentsToAuthor() throws InterruptedException {
curatorAttemptsToAddFileWhileInReviewViaSword.then().assertThat()
.statusCode(CREATED.getStatusCode());
// Give file time to ingest. The lock needs to go away before any edits can happen.
Thread.sleep(2000);
boolean exerciseConcurrentModificationException = false;
if (exerciseConcurrentModificationException) {
String comments = "How do we feel about concurrency?";
JsonObjectBuilder jsonObjectBuilder = Json.createObjectBuilder();
jsonObjectBuilder.add("reasonForReturn", comments);
Response returnToAuthor = UtilIT.returnDatasetToAuthor(datasetPersistentId, jsonObjectBuilder.build(), curatorApiToken);
returnToAuthor.prettyPrint();
} else {
Thread.sleep(2000);
}
}

// The author changes his mind and figures this is a teaching moment to
Expand Down

0 comments on commit fa3bc31

Please sign in to comment.