improves test performance on mongodb (#4862)

* improves test performance on mongodb

* Removes unused methdos
This commit is contained in:
Florent Vilmart
2018-06-29 17:09:51 -04:00
committed by GitHub
parent 1e8ba742a8
commit 585938ca2c
10 changed files with 88 additions and 46 deletions

View File

@@ -12,7 +12,7 @@ const dropTable = (client, className) => {
describe_only_db('postgres')('PostgresStorageAdapter', () => {
const adapter = new PostgresStorageAdapter({ uri: databaseURI })
beforeEach(() => {
return adapter.deleteAllClasses();
return adapter.dropDatabase();
});
it('schemaUpgrade, upgrade the database schema when schema changes', done => {