Permalink
Browse files

fix tests

  • Loading branch information...
1 parent de5be4b commit 3b1cd739c929209841386e76c0f311106fc8981f @aheckmann aheckmann committed Jul 13, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −1 test/collection.test.js
  2. +1 −3 test/model.test.js
View
@@ -19,7 +19,7 @@ describe('collections:', function(){
done();
}
- collection.insert({ }, function(){
+ collection.insert({ }, { safe: true }, function(){
assert.ok(connected);
inserted = true;
db.close();
View
@@ -3820,9 +3820,7 @@ describe('model', function(){
worked = true;
});
- process.nextTick(function () {
- db.close();
- });
+ db.db.close();
setTimeout(function () {
assert.ok(worked);

0 comments on commit 3b1cd73

Please sign in to comment.