Skip to content

Commit 3d6f7e4

Browse files
Update avgLong_negativeOverflow test.
1 parent d53ef6f commit 3d6f7e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/objectbox-java-test/src/test/java/io/objectbox/query/PropertyQueryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@ public void avgLong_negativeOverflow() {
727727
putTestEntityInteger((byte) 0, (short) 0, 0, -1);
728728

729729
Query<TestEntity> baseQuery = box.query().build();
730-
assertEquals(Long.MIN_VALUE / 2, baseQuery.property(simpleLong).avgLong());
730+
assertEquals(Long.MIN_VALUE / 2 - 1, baseQuery.property(simpleLong).avgLong());
731731
// Should not change if treated as unsigned.
732-
assertEquals(Long.MIN_VALUE / 2, baseQuery.property(simpleLongU).avgLong());
732+
assertEquals(Long.MIN_VALUE / 2 - 1, baseQuery.property(simpleLongU).avgLong());
733733
}
734734

735735
@Test

0 commit comments

Comments
 (0)