Skip to content

Commit 12b070c

Browse files
BoxStoreBuilderTest: drop unused max size from max data size test
This also resolves the test breaking on Apple Silicon macOS, because the database file is much larger.
1 parent 4030578 commit 12b070c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,11 @@ public void maxFileSize() {
290290

291291
@Test
292292
public void maxDataSize() {
293-
// Put until max data size is reached, but still below max database size.
294293
builder = createBoxStoreBuilder(null);
295-
builder.maxSizeInKByte(50); // Empty file is around 12 KB, each put adds about 8 KB.
296294
builder.maxDataSizeInKByte(1);
297295
store = builder.build();
298296

297+
// Put until max data size is reached
299298
TestEntity testEntity1 = putTestEntity(LONG_STRING, 1);
300299
TestEntity testEntity2 = createTestEntity(LONG_STRING, 2);
301300
DbMaxDataSizeExceededException maxDataExc = assertThrows(

0 commit comments

Comments
 (0)