From d3fb9f0d09c66840f00d2b4935b7f1e7691f55e8 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Wed, 2 Oct 2019 23:02:29 +0200 Subject: [PATCH] revert: destroy db at test-init --- test/e2e/helpers/database-init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/helpers/database-init.js b/test/e2e/helpers/database-init.js index 727ef62a82..cc356eb99f 100644 --- a/test/e2e/helpers/database-init.js +++ b/test/e2e/helpers/database-init.js @@ -54,7 +54,7 @@ module.exports = async function init(databaseSchema = 'test', getLogger) { const options = { databaseUrl: require('./database-config').getDatabaseUrl(), databaseSchema, - minPool: 0, + minPool: 1, maxPool: 1, getLogger, }; @@ -64,6 +64,7 @@ module.exports = async function init(databaseSchema = 'test', getLogger) { await db.raw(`CREATE SCHEMA IF NOT EXISTS ${options.databaseSchema}`); await migrator(options); + await db.destroy(); const stores = await createStores(options, eventBus); await resetDatabase(stores); await setupDatabase(stores);