Skip to content

Commit

Permalink
Fixing test execution with OpenSearch and Elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Jan 23, 2025
1 parent 061c94e commit 856ba64
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ public void uniqueSchemaConstraint() {
userTO2.getPlainAttrs().add(attr("surname", userId2));
userTO2.getPlainAttrs().add(attr("unique" + schemaUID, "unique" + schemaUID));

if (IS_EXT_SEARCH_ENABLED) {
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {
// ignore
}
}

try {
createUser(userTO2);
fail("This should not happen");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,14 @@ public void reconcileFromDB() {
TASK_SERVICE, TaskType.PULL, "83f7e85d-9774-43fe-adba-ccd856312994", MAX_WAIT_SECONDS, false);
assertEquals(ExecStatus.SUCCESS, ExecStatus.valueOf(execution.getStatus()));

if (IS_EXT_SEARCH_ENABLED) {
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {
// ignore
}
}

userTO = USER_SERVICE.read("testuser1");
assertNotNull(userTO);
assertEquals("active", userTO.getStatus());
Expand Down

0 comments on commit 856ba64

Please sign in to comment.