You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2020/11/07 17:17:19 UTC
[unomi] branch master updated: Fix issues with integration tests
This is an automated email from the ASF dual-hosted git repository.
shuber 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 3e1415b Fix issues with integration tests
3e1415b is described below
commit 3e1415bac42ea26a5e969d065e8aba530bd59e6e
Author: Serge Huber <sh...@jahia.com>
AuthorDate: Sat Nov 7 18:17:12 2020 +0100
Fix issues with integration tests
---
itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java b/itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java
index ea0f83b..530baa8 100644
--- a/itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java
+++ b/itests/src/test/java/org/apache/unomi/itests/EventServiceIT.java
@@ -25,6 +25,7 @@ import org.apache.unomi.api.query.Query;
import org.apache.unomi.api.PartialList;
+import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.Assert;
@@ -61,6 +62,13 @@ public class EventServiceIT extends BaseIT {
@Filter(timeout = 600000)
protected ProfileService profileService;
+ @After
+ public void tearDown() {
+ TestUtils.removeAllEvents(definitionsService, persistenceService);
+ TestUtils.removeAllSessions(definitionsService, persistenceService);
+ TestUtils.removeAllProfiles(definitionsService, persistenceService);
+ }
+
@Test
public void test_EventExistenceWithProfileId() throws InterruptedException{
String eventId = "test-event-id-" + System.currentTimeMillis();;