0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fix slow running tests when using Sqlite3.

closes #6355
Updated testing config to set a few settings on sqlite.
This commit is contained in:
JT Turner 2016-01-16 16:43:59 -08:00
parent 4b6d743c0f
commit 12e3ca3ef9

View file

@ -83,6 +83,14 @@ config = {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-test.db')
},
pool: {
afterCreate: function (conn, done) {
conn.run('PRAGMA synchronous=OFF;' +
'PRAGMA journal_mode=MEMORY;' +
'PRAGMA locking_mode=EXCLUSIVE;' +
'BEGIN EXCLUSIVE; COMMIT;', done);
}
}
},
server: {