Explorar o código

modify mongoose opt in test

Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
4d3539c6fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
   }
 
-  mongoose.connect(mongoUri);
+  mongoose.connect(mongoUri, { useMongoClient: true });
 
   function clearDB() {
     for (var i in mongoose.connection.collections) {