This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 2_1_X in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push: new 607b710 Elasticsearch test stabilization 607b710 is described below commit 607b7103111bac9f521b8d654b141a2dbbbe812e Author: Francesco Chicchiriccò <ilgro...@apache.org> AuthorDate: Tue Feb 8 06:33:06 2022 +0100 Elasticsearch test stabilization --- .../src/test/java/org/apache/syncope/fit/core/SearchITCase.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SearchITCase.java b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SearchITCase.java index 030b3d0..1348635 100644 --- a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SearchITCase.java +++ b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SearchITCase.java @@ -703,6 +703,14 @@ public class SearchITCase extends AbstractITCase { patch.getPlainAttrs().add(new AttrPatch.Builder().attrTO(attrTO("ctype", "ou=sample,o=isp")).build()); userService.update(patch); + if (ElasticsearchDetector.isElasticSearchEnabled(syncopeService)) { + try { + Thread.sleep(2000); + } catch (InterruptedException ex) { + // ignore + } + } + try { PagedResult<UserTO> users = userService.search(new AnyQuery.Builder().fiql( SyncopeClient.getUserSearchConditionBuilder().is("ctype").equalTo("ou=sample%252Co=isp").query()).