Skip to content

Commit

Permalink
more delays
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed May 17, 2024
1 parent a6efd5f commit 32249ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/test/java/edu/harvard/iq/dataverse/api/LinkIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void testDeepLinks() {
.statusCode(OK.getStatusCode())
.body("data.message", equalTo("Dataverse " + level1a + " linked successfully to " + level1b));
try {
Thread.sleep(4000);
Thread.sleep(3000);
} catch (InterruptedException ex) {
/**
* With solrconfig autoSoftCommit set to 1000 (1sec), this sleep is needed.
Expand All @@ -190,6 +190,13 @@ public void testDeepLinks() {
.statusCode(OK.getStatusCode())
.body("data.message", equalTo("Dataverse " + level2a + " linked successfully to " + level2b));

try {
Thread.sleep(3000);
} catch (InterruptedException ex) {
/**
* With solrconfig autoSoftCommit set to 1000 (1sec), this sleep is needed.
*/
}
Response searchLevel2toLevel2 = UtilIT.search("*", apiToken, "&subtree=" + level2b);
searchLevel2toLevel2.prettyPrint();
searchLevel2toLevel2.then().assertThat()
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/edu/harvard/iq/dataverse/api/UtilIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class UtilIT {
private static final String API_TOKEN_KEY = "apiToken";
private static final String BUILTIN_USER_KEY = "burrito";
private static final String EMPTY_STRING = "";
public static final int MAXIMUM_INGEST_LOCK_DURATION = 16; // 15 + 1 sec for current autoSoftCommit duration
public static final int MAXIMUM_INGEST_LOCK_DURATION = 17; // 15 + 2 sec for current autoSoftCommit duration of 1sec
public static final int MAXIMUM_PUBLISH_LOCK_DURATION = 20;
public static final int MAXIMUM_IMPORT_DURATION = 1;

Expand Down

0 comments on commit 32249ff

Please sign in to comment.