Browse Source

modify mongoose opt in test

Yuki Takei 8 years ago
parent
commit
4d3539c6fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/utils.js

+ 1 - 1
test/utils.js

@@ -14,7 +14,7 @@ before('Create database connection and clean up', function (done) {
     return done();
     return done();
   }
   }
 
 
-  mongoose.connect(mongoUri);
+  mongoose.connect(mongoUri, { useMongoClient: true });
 
 
   function clearDB() {
   function clearDB() {
     for (var i in mongoose.connection.collections) {
     for (var i in mongoose.connection.collections) {