Skip to content

Commit e7e0b6d

Browse files
committed
Wait until automigrate finished before returning control
strongloop-archive/loopback-testing#58
1 parent 8e76963 commit e7e0b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ _beforeEach.cleanDatasource = function(dsName) {
3333
if (typeof this.app === 'function'
3434
&& typeof this.app.datasources === 'object'
3535
&& typeof this.app.datasources[dsName] === 'object') {
36-
this.app.datasources[dsName].automigrate();
36+
this.app.datasources[dsName].automigrate(done);
3737
this.app.datasources[dsName].connector.ids = {};
3838
}
3939

0 commit comments

Comments
 (0)