Skip to content

Commit 4b94b54

Browse files
Regression: log first db directory.
Regression from add test validateOnOpenCorruptFile() based on corrupt-pageno-in-branch-data.mdb
1 parent 78944d3 commit 4b94b54

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public void setUp() throws IOException {
7777
Cursor.TRACK_CREATION_STACK = true;
7878
Transaction.TRACK_CREATION_STACK = true;
7979

80+
// Note: is logged, so create before logging.
81+
boxStoreDir = prepareTempDir("object-store-test");
82+
8083
if (!printedVersionsOnce) {
8184
printedVersionsOnce = true;
8285
printProcessId();
@@ -85,7 +88,6 @@ public void setUp() throws IOException {
8588
System.out.println("First DB dir: " + boxStoreDir);
8689
}
8790

88-
boxStoreDir = prepareTempDir("object-store-test");
8991
store = createBoxStore();
9092
runExtensiveTests = System.getProperty("extensive-tests") != null;
9193
}

0 commit comments

Comments
 (0)