Skip to content

Commit

Permalink
Rig up the test suite in series to prevent concurrent modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
theninj4 committed Jul 11, 2016
1 parent 863c8d0 commit 1d6dc7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/sqlHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ SqlStore.prototype.populate = function(callback) {
self.baseModel.sync().asCallback(cb);
},
function(cb) {
async.each(self.relationArray, function(model, ecb) {
async.eachSeries(self.relationArray, function(model, ecb) {
model.sync().asCallback(ecb);
}, cb);
},
function(cb) {
async.each(self.resourceConfig.examples, function(exampleJson, ecb) {
async.eachSeries(self.resourceConfig.examples, function(exampleJson, ecb) {
var validation = Joi.validate(exampleJson, self.resourceConfig.attributes);
if (validation.error) return ecb(validation.error);
self.create({ request: { type: self.resourceConfig.resource } }, validation.value, ecb);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"blanket": "1.1.9",
"coveralls": "^2.11.9",
"eslint": "^2.11.0",
"jsonapi-server": "^1.15.0",
"jsonapi-server": "^1.15.4",
"mocha": "^2.5.3",
"mocha-lcov-reporter": "^1.2.0",
"mocha-performance": "^0.1.1",
Expand Down

0 comments on commit 1d6dc7a

Please sign in to comment.