You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2022/08/17 16:41:31 UTC
[unomi] branch migrationAutomation updated: UNOMI-622: stabilize test try
This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch migrationAutomation
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/migrationAutomation by this push:
new db9a6c07f UNOMI-622: stabilize test try
db9a6c07f is described below
commit db9a6c07fedec9c58bad8698a97f7280f559d4ab
Author: Kevan <ke...@jahia.com>
AuthorDate: Wed Aug 17 18:41:16 2022 +0200
UNOMI-622: stabilize test try
---
itests/src/test/java/org/apache/unomi/itests/SegmentIT.java | 7 +++++++
1 file changed, 7 insertions(+)
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 b1a3c0626..4dcefebdc 100644
--- a/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/SegmentIT.java
@@ -255,6 +255,13 @@ public class SegmentIT extends BaseIT {
Event testEvent = new Event("negative-test-event-type", null, profile, null, null, profile,
Date.from(localDate.atStartOfDay(defaultZoneId).toInstant()));
testEvent.setPersistent(true);
+
+ // wait for segment auto generated rule to be available
+ keepTrying("The segment auto generated rule should be available to handle the test event",
+ () -> rulesService.getMatchingRules(testEvent),
+ rules -> rules.size() > 0, 1000, 20);
+
+ // send the event
int changes = eventService.send(testEvent);
if ((changes & EventService.PROFILE_UPDATED) == EventService.PROFILE_UPDATED) {
profileService.save(profile);