1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

chore: remove old test-setup hacks

This commit is contained in:
ivaosthu 2019-10-02 22:36:11 +02:00 committed by Ivar Conradi Østhus
parent 7b81295551
commit d01fbdeac4

View File

@ -7,14 +7,9 @@ const { createDb } = require('../../../lib/db/db-pool');
const dbState = require('./database.json');
require('db-migrate-shared').log.silence(true);
// because of migrator bug
delete process.env.DATABASE_URL;
// because of db-migrate bug (https://github.com/Unleash/unleash/issues/171)
process.setMaxListeners(0);
async function resetDatabase(stores) {
return Promise.all([
stores.db('strategies').del(),