Permalink
Browse files

tweak test

  • Loading branch information...
1 parent 68dc94c commit dfdac5e4c748a02f465cb2f5a084698049437b47 @aheckmann aheckmann committed Jun 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/model.test.js
View
@@ -4329,8 +4329,8 @@ module.exports = {
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();
+ assert.ok(/^E11000 duplicate key error index:/.test(err.message), err);
});
var schema = new Schema({ name: { type: String } })

0 comments on commit dfdac5e

Please sign in to comment.