Skip to content

Commit 12e3ca3

Browse files
committed
Fix slow running tests when using Sqlite3.
closes #6355 Updated testing config to set a few settings on sqlite.
1 parent 4b6d743 commit 12e3ca3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config.example.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ config = {
8383
client: 'sqlite3',
8484
connection: {
8585
filename: path.join(__dirname, '/content/data/ghost-test.db')
86+
},
87+
pool: {
88+
afterCreate: function (conn, done) {
89+
conn.run('PRAGMA synchronous=OFF;' +
90+
'PRAGMA journal_mode=MEMORY;' +
91+
'PRAGMA locking_mode=EXCLUSIVE;' +
92+
'BEGIN EXCLUSIVE; COMMIT;', done);
93+
}
8694
}
8795
},
8896
server: {

0 commit comments

Comments
 (0)