Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 5aa0040

Browse files
committed
integration-test: Disable WAL for cleaner commits
1 parent c2e7ccd commit 5aa0040

File tree

5 files changed

+4
-2
lines changed

5 files changed

+4
-2
lines changed

integration-tests/db/document.db

-1.48 MB
Binary file not shown.

integration-tests/db/document.db-shm

-32 KB
Binary file not shown.

integration-tests/db/document.db-wal

-1.96 MB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"prepare-dist": "rimraf ./dist && tsc && tsx ./bin/copy-dist.ts",
4646
"update-build-info": "tsx bin/update-build-info.ts",
4747
"errors": "tsc --watch --noEmit",
48-
"integration-edit-db": "cross-env TRILIUM_PORT=8081 TRILIUM_DATA_DIR=./integration-tests/db nodemon src/www.ts"
48+
"integration-edit-db": "cross-env TRILIUM_INTEGRATION_TEST=edit TRILIUM_PORT=8081 TRILIUM_DATA_DIR=./integration-tests/db nodemon src/www.ts"
4949
},
5050
"dependencies": {
5151
"@braintree/sanitize-url": "^7.1.0",

src/services/sql.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ import becca_loader from "../becca/becca_loader.js";
1515
import entity_changes from "./entity_changes.js";
1616

1717
const dbConnection: DatabaseType = new Database(dataDir.DOCUMENT_PATH);
18-
dbConnection.pragma('journal_mode = WAL');
18+
if (!process.env.TRILIUM_INTEGRATION_TEST) {
19+
dbConnection.pragma('journal_mode = WAL');
20+
}
1921

2022
const LOG_ALL_QUERIES = false;
2123

0 commit comments

Comments
 (0)