mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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');
 | 
			
		||||
 | 
			
		||||
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(),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user