mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
chore: remove old test-setup hacks
This commit is contained in:
parent
7b81295551
commit
d01fbdeac4
@ -7,14 +7,9 @@ const { createDb } = require('../../../lib/db/db-pool');
|
|||||||
|
|
||||||
const dbState = require('./database.json');
|
const dbState = require('./database.json');
|
||||||
|
|
||||||
require('db-migrate-shared').log.silence(true);
|
|
||||||
|
|
||||||
// because of migrator bug
|
// because of migrator bug
|
||||||
delete process.env.DATABASE_URL;
|
delete process.env.DATABASE_URL;
|
||||||
|
|
||||||
// because of db-migrate bug (https://github.com/Unleash/unleash/issues/171)
|
|
||||||
process.setMaxListeners(0);
|
|
||||||
|
|
||||||
async function resetDatabase(stores) {
|
async function resetDatabase(stores) {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
stores.db('strategies').del(),
|
stores.db('strategies').del(),
|
||||||
|
Loading…
Reference in New Issue
Block a user