Yuki Takei 8 лет назад
Родитель
Сommit
4d3539c6fb
1 измененных файлов с 1 добавлено и 1 удалено
  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) {