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

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


The following commit(s) were added to refs/heads/master by this push:
     new f0a17d454 fix integrations tests (#714)
f0a17d454 is described below

commit f0a17d4548d2b3cb0501319c783a365fde7f26c6
Author: Jonathan SINOVASSIN-NAIK <58434978+jsinovas...@users.noreply.github.com>
AuthorDate: Tue Dec 10 11:18:57 2024 +0100

    fix integrations tests (#714)
---
 .../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