This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 856ba645b6 Fixing test execution with OpenSearch and Elasticsearch
856ba645b6 is described below

commit 856ba645b658eb03b85f3d9a40b6d6a0cc5ca613
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Thu Jan 23 17:07:50 2025 +0100

    Fixing test execution with OpenSearch and Elasticsearch
---
 .../java/org/apache/syncope/fit/core/ExceptionMapperITCase.java   | 8 ++++++++
 .../src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/ExceptionMapperITCase.java
 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/ExceptionMapperITCase.java
index 890bfdc426..a7696905e3 100644
--- 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/ExceptionMapperITCase.java
+++ 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/ExceptionMapperITCase.java
@@ -101,6 +101,14 @@ public class ExceptionMapperITCase extends AbstractITCase {
         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");
diff --git 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java
 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java
index 73d990d33b..1f63249ddd 100644
--- 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java
+++ 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/PullTaskITCase.java
@@ -426,6 +426,14 @@ public class PullTaskITCase extends AbstractTaskITCase {
                     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());

Reply via email to