Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit ab4b51e

Browse files
author
Miroslav Bajtoš
committed
Merge pull request #58 from vladmiller/patch-3
Wait for automigrate to finish
2 parents 8655d59 + 1cfeb02 commit ab4b51e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/helpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ _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 = {};
38+
} else {
39+
done();
3840
}
39-
40-
done();
4141
});
4242
}
4343

0 commit comments

Comments
 (0)