You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by js...@apache.org on 2023/05/12 12:46:59 UTC

[unomi] branch UNOMI-780-backport-use-scroll-queries updated: fix IT test

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

jsinovassinnaik pushed a commit to branch UNOMI-780-backport-use-scroll-queries
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/UNOMI-780-backport-use-scroll-queries by this push:
     new 7ae39f1c9 fix IT test
7ae39f1c9 is described below

commit 7ae39f1c92d6e07735b3be68aae959956b28d441
Author: jsinovassin <js...@jahia.com>
AuthorDate: Fri May 12 14:46:51 2023 +0200

    fix IT test
---
 itests/src/test/java/org/apache/unomi/itests/SegmentIT.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java b/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
index d230a07c3..beee73762 100644
--- a/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
@@ -556,7 +556,7 @@ public class SegmentIT extends BaseIT {
         testEvent = new Event("test-event-type", null, testEvent.getProfile(), null, null, testEvent.getProfile(), timestampEventInRange);
         eventService.send(testEvent);
         persistenceService.refreshIndex(Event.class, timestampEventInRange);
-
+        refreshPersistence(Profile.class);
         // insure the profile is engaged;
         Assert.assertTrue("Profile should have 2 events in the scoring",  (Long) ((Map) testEvent.getProfile().getSystemProperties().get("pastEvents")).get(pastEventCondition.getParameterValues().get("generatedPropertyKey")) == 2);
         Assert.assertTrue("Profile is engaged",  testEvent.getProfile().getScores().containsKey("past-event-scoring-test") && testEvent.getProfile().getScores().get("past-event-scoring-test") == 50);
@@ -734,4 +734,4 @@ public class SegmentIT extends BaseIT {
                 updatedProfile -> !updatedProfile.getSegments().contains("relative-date-segment-test") && (updatedProfile.getScores() == null || !updatedProfile.getScores().containsKey("relative-date-scoring-test")),
                 1000, 20);
     }
-}
\ No newline at end of file
+}