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

jsinovassinnaik pushed a commit to branch fix-it-tests
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit 87055372fec155410d7de099dba4a2b9d461be9b
Author: jsinovassin <jsinovassinn...@jahia.com>
AuthorDate: Tue Dec 10 10:03:35 2024 +0100

    fix integrations tests
---
 .../java/org/apache/unomi/itests/migration/Migrate16xTo220IT.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/itests/src/test/java/org/apache/unomi/itests/migration/Migrate16xTo220IT.java 
b/itests/src/test/java/org/apache/unomi/itests/migration/Migrate16xTo220IT.java
index f892c338a..f109eda4b 100644
--- 
a/itests/src/test/java/org/apache/unomi/itests/migration/Migrate16xTo220IT.java
+++ 
b/itests/src/test/java/org/apache/unomi/itests/migration/Migrate16xTo220IT.java
@@ -66,7 +66,7 @@ public class Migrate16xTo220IT extends BaseIT {
         }
 
         // Do migrate the data set
-        String commandResults = executeCommand("unomi:migrate 1.6.0 true");
+        String commandResults = executeCommand("unomi:migrate 1.6.0 true", 
900000L, true);
 
         // Prin the resulted output in the karaf shell directly
         System.out.println("Migration command output results:");
@@ -262,7 +262,7 @@ public class Migrate16xTo220IT extends BaseIT {
         // check that the scope mySite have been created based on the previous 
existings events
         Map<String, Long> existingScopesFromEvents = 
persistenceService.aggregateWithOptimizedQuery(null, new 
TermsAggregate("scope"), Event.ITEM_TYPE);
         for (String scopeFromEvents : existingScopesFromEvents.keySet()) {
-            if (!Objects.equals(scopeFromEvents, "_filtered")) {
+            if (!Objects.equals(scopeFromEvents, "_filtered") && 
!Objects.equals(scopeFromEvents, "_missing")) {
                 Scope scope = scopeService.getScope(scopeFromEvents);
                 Assert.assertNotNull(String.format("Unable to find registered 
scope %s", scopeFromEvents), scope);
             }

Reply via email to