Permalink
Browse files

fix race condition in test

  • Loading branch information...
1 parent 27035d7 commit 7ff620f362aee152c0075cdcee2452f93bb0ab33 @aheckmann aheckmann committed May 1, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/model.test.js
View
2 test/model.test.js
@@ -4304,6 +4304,7 @@ module.exports = {
var db = start();
db.on('error', function (err) {
+ if (/connection closed/.test(err.message)) return;
/^E11000 duplicate key error index:/.test(err.message).should.equal(true);
db.close();
});
@@ -4725,4 +4726,5 @@ module.exports = {
});
})
}
+
};

0 comments on commit 7ff620f

Please sign in to comment.