This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch reduceIndicesItems3
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/reduceIndicesItems3 by this
push:
new d1b2a5e45 UNOMI-736: Fix IT
d1b2a5e45 is described below
commit d1b2a5e45864c92008c520cce5620c927be75d82
Author: Kevan <[email protected]>
AuthorDate: Tue Feb 28 11:53:27 2023 +0100
UNOMI-736: Fix IT
---
.../java/org/apache/unomi/itests/migration/Migrate16xTo220IT.java | 6 +++---
1 file changed, 3 insertions(+), 3 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 d6fd985ec..fdcb40fb0 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
@@ -98,8 +98,8 @@ public class Migrate16xTo220IT extends BaseIT {
/**
* Checks if at least the new index for events and sessions exists.
* Also checks:
- * - duplicated sessions are correctly removed
- * - persona sessions are now merged in session index due to index
reduction in 2_2_0
+ * - duplicated sessions are correctly removed (-3 sessions in final count)
+ * - persona sessions are now merged in session index due to index
reduction in 2_2_0 (+2 sessions in final count)
*/
private void checkEventSessionRollover2_2_0() throws IOException {
Assert.assertTrue(MigrationUtils.indexExists(httpClient,
"http://localhost:9400", "context-event-000001"));
@@ -117,7 +117,7 @@ public class Migrate16xTo220IT extends BaseIT {
newSessioncount += jsonNode.get("count").asInt();
}
Assert.assertEquals(eventCount, newEventcount);
- Assert.assertEquals(sessionCount - NUMBER_DUPLICATE_SESSIONS -
NUMBER_PERSONASESSIONS, newSessioncount);
+ Assert.assertEquals(sessionCount - NUMBER_DUPLICATE_SESSIONS +
NUMBER_PERSONASESSIONS, newSessioncount);
}
/**