Skip to content

Commit a304b8c

Browse files
BoxStoreTest: ignore validated pages changes if entity size changes
There is now a maxDataSize test which already helps catch unexpected entity size changes.
1 parent 0c7c3f8 commit a304b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/objectbox-java-test/src/test/java/io/objectbox/BoxStoreTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public void validate() {
325325
// Note: not implemented for in-memory, returns 0.
326326
// No limit.
327327
long validated = store.validate(0, true);
328-
assertEquals(IN_MEMORY ? 0 : 15, validated);
328+
assertTrue(IN_MEMORY ? validated == 0 : validated > 2 /* must be larger than with pageLimit == 1, see below */);
329329

330330
// With limit.
331331
validated = store.validate(1, true);

0 commit comments

Comments
 (0)