From 12e3ca3ef9aef4c9d7d8d75d1d0d528d10ce0b5b Mon Sep 17 00:00:00 2001 From: JT Turner Date: Sat, 16 Jan 2016 16:43:59 -0800 Subject: [PATCH] Fix slow running tests when using Sqlite3. closes #6355 Updated testing config to set a few settings on sqlite. --- config.example.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config.example.js b/config.example.js index d6813db492..f1a408e9a3 100644 --- a/config.example.js +++ b/config.example.js @@ -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: {