Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Jul 13, 2012
1 parent de5be4b commit 3b1cd73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/collection.test.js
Expand Up @@ -19,7 +19,7 @@ describe('collections:', function(){
done();
}

collection.insert({ }, function(){
collection.insert({ }, { safe: true }, function(){
assert.ok(connected);
inserted = true;
db.close();
Expand Down
4 changes: 1 addition & 3 deletions test/model.test.js
Expand Up @@ -3820,9 +3820,7 @@ describe('model', function(){
worked = true;
});

process.nextTick(function () {
db.close();
});
db.db.close();

setTimeout(function () {
assert.ok(worked);
Expand Down

0 comments on commit 3b1cd73

Please sign in to comment.