diff --git a/lib/helpers.js b/lib/helpers.js index ff6cd65..68cda8f 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -33,11 +33,9 @@ _beforeEach.cleanDatasource = function(dsName) { if (typeof this.app === 'function' && typeof this.app.datasources === 'object' && typeof this.app.datasources[dsName] === 'object') { - this.app.datasources[dsName].automigrate(); + this.app.datasources[dsName].automigrate(done); this.app.datasources[dsName].connector.ids = {}; } - - done(); }); }