File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,10 @@ describe('connections:', function() {
188
188
let numReconnected = 0 ;
189
189
let numReconnect = 0 ;
190
190
let numClose = 0 ;
191
- const conn = mongoose . createConnection ( 'mongodb://localhost:27000/mongoosetest' , { useNewUrlParser : true } ) ;
191
+ const conn = mongoose . createConnection ( 'mongodb://localhost:27000/mongoosetest' , {
192
+ useNewUrlParser : true ,
193
+ useUnifiedTopology : true
194
+ } ) ;
192
195
193
196
conn . on ( 'connected' , function ( ) {
194
197
++ numConnected ;
@@ -255,7 +258,8 @@ describe('connections:', function() {
255
258
const conn = mongoose . createConnection ( 'mongodb://localhost:27000/mongoosetest' , {
256
259
reconnectTries : 3 ,
257
260
reconnectInterval : 100 ,
258
- useNewUrlParser : true
261
+ useNewUrlParser : true ,
262
+ useUnifiedTopology : true
259
263
} ) ;
260
264
261
265
conn . on ( 'connected' , function ( ) {
You can’t perform that action at this time.
0 commit comments