File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -422,17 +422,25 @@ exports['Should correctly reapply the authentications'] = {
422422 // Reconnect should reapply the credentials
423423 db . collection ( 'test' ) . insert ( { a :1 } , function ( err , result ) {
424424 test . equal ( null , err ) ;
425+ } ) ;
425426
426- // Reconnect should reapply the credentials
427- db . collection ( ' test' ) . insert ( { a : 1 } , function ( err , result ) {
428- test . equal ( null , err ) ;
427+ db . collection ( 'test' ) . insert ( { a : 1 } , function ( err , result ) {
428+ test . equal ( null , err ) ;
429+ } ) ;
429430
430- db1 . close ( ) ;
431+ db . collection ( 'test' ) . insert ( { a :1 } , function ( err , result ) {
432+ test . equal ( null , err ) ;
433+ } ) ;
431434
432- // restart server
433- configuration . manager . restart ( true ) . then ( function ( ) {
434- test . done ( ) ;
435- } ) ;
435+ // Reconnect should reapply the credentials
436+ db . collection ( 'test' ) . insert ( { a :1 } , function ( err , result ) {
437+ test . equal ( null , err ) ;
438+
439+ db1 . close ( ) ;
440+
441+ // restart server
442+ configuration . manager . restart ( true ) . then ( function ( ) {
443+ test . done ( ) ;
436444 } ) ;
437445 } ) ;
438446 } ) ;
Original file line number Diff line number Diff line change @@ -399,7 +399,6 @@ exports['Should correctly reconnect and finish query operation'] = {
399399
400400 // Await reconnect and re-authentication
401401 db . collection ( 'test_reconnect' ) . findOne ( function ( err , doc ) {
402- console . dir ( err )
403402 test . equal ( null , err ) ;
404403 test . equal ( 1 , doc . a ) ;
405404 test . equal ( 2 , dbReconnect ) ;
You can’t perform that action at this time.
0 commit comments