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/03/22 18:42:20 UTC

[unomi] 01/01: refresh groovy index after remove

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

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

commit f58198657d6901514610a181642a8c4f700ca787
Author: jsinovassin <js...@jahia.com>
AuthorDate: Wed Mar 22 19:26:06 2023 +0100

    refresh groovy index after remove
---
 .../src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java   | 2 +-
 itests/src/test/java/org/apache/unomi/itests/SegmentIT.java             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/itests/src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java b/itests/src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java
index a0d42cd3e..1382533d5 100644
--- a/itests/src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/GroovyActionsServiceIT.java
@@ -162,7 +162,7 @@ public class GroovyActionsServiceIT extends BaseIT {
         Assert.assertNotNull(groovyCodeSource);
 
         groovyActionsService.remove(UPDATE_ADDRESS_ACTION);
-        refreshPersistence(GroovyAction.class);
+        refreshPersistence(GroovyAction.class, ActionType.class);
 
         Thread.sleep(2000);
         groovyCodeSource = groovyActionsService.getGroovyCodeSource(UPDATE_ADDRESS_ACTION);
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 53a3c9da4..d230a07c3 100644
--- a/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
@@ -544,7 +544,7 @@ public class SegmentIT extends BaseIT {
         scoringElements.add(scoringElement);
         scoring.setElements(scoringElements);
         segmentService.setScoringDefinition(scoring);
-        refreshPersistence(Scoring.class);
+        refreshPersistence(Scoring.class, Profile.class);
 
         // Send 2 events that match the scoring plan.
         profile = profileService.load("test_profile_id");