From db6a05515d292557613ec633bab293d31bd7bc35 Mon Sep 17 00:00:00 2001 From: cezary-witkowski Date: Wed, 11 Dec 2024 10:49:59 +0100 Subject: [PATCH] [ACS-9069] Fix failing tests after configuration change in lifeIndexer that makes subscription durable by default --- .../reindexing/ElasticsearchReindexingTests.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/tas-elasticsearch/src/test/java/org/alfresco/elasticsearch/reindexing/ElasticsearchReindexingTests.java b/tests/tas-elasticsearch/src/test/java/org/alfresco/elasticsearch/reindexing/ElasticsearchReindexingTests.java index 75017d3984..bcabed65c3 100644 --- a/tests/tas-elasticsearch/src/test/java/org/alfresco/elasticsearch/reindexing/ElasticsearchReindexingTests.java +++ b/tests/tas-elasticsearch/src/test/java/org/alfresco/elasticsearch/reindexing/ElasticsearchReindexingTests.java @@ -184,7 +184,11 @@ private void internalTestEnabledFeatures( // Delete index documents cleanUpIndex(); // Restart ElasticsearchConnector to Index Content - AlfrescoStackInitializer.liveIndexer.start(); + if (contentIndexingEnabled) + { + // Reindexer requires lifeIndexer to index content. + AlfrescoStackInitializer.liveIndexer.start(); + } // WHEN // Run reindexer leaving ALFRESCO_REINDEX_TO_TIME as default