Skip to content

Commit fd61d0f

Browse files
Corrupt test: do not use previous commit so db is actually broken.
1 parent 6141201 commit fd61d0f

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/BoxStoreBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void validateOnOpenCorruptFile() throws IOException {
158158
File badDataFile = prepareBadDataFile(dir);
159159

160160
builder = BoxStoreBuilder.createDebugWithoutModel().directory(dir);
161-
builder.validateOnOpen(ValidateOnOpenMode.Full).usePreviousCommit();
161+
builder.validateOnOpen(ValidateOnOpenMode.Full);
162162
try {
163163
store = builder.build();
164164
} finally {

0 commit comments

Comments
 (0)