Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix race condition in test

  • Loading branch information...
commit 7ff620f362aee152c0075cdcee2452f93bb0ab33 1 parent 27035d7
@aheckmann aheckmann authored
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 = {
});
})
}
+
};
Please sign in to comment.
Something went wrong with that request. Please try again.