@@ -610,33 +610,13 @@ describe('class MongoClient', function () {
610610 await client . close ( ) ;
611611 } ) ;
612612
613- it (
614- 'creates topology and checks out connection when auth is enabled' ,
615- { requires : { auth : 'enabled' } } ,
616- async function ( ) {
617- const checkoutStarted = once ( client , 'connectionCheckOutStarted' ) ;
618- await client . connect ( ) ;
619- const checkout = await checkoutStarted ;
620- expect ( checkout ) . to . exist ;
621- expect ( client ) . to . have . property ( 'topology' ) . that . is . instanceOf ( Topology ) ;
622- }
623- ) ;
624-
625- it (
626- 'checks out connection to confirm connectivity even when authentication is disabled' ,
627- { requires : { auth : 'disabled' } } ,
628- async function ( ) {
629- const checkoutStartedEvents = [ ] ;
630- client . on ( 'connectionCheckOutStarted' , event => {
631- checkoutStartedEvents . push ( event ) ;
632- } ) ;
633- const checkoutStarted = once ( client , 'connectionCheckOutStarted' ) ;
634- await client . connect ( ) ;
635- const checkout = await checkoutStarted ;
636- expect ( checkout ) . to . exist ;
637- expect ( client ) . to . have . property ( 'topology' ) . that . is . instanceOf ( Topology ) ;
638- }
639- ) ;
613+ it ( 'creates topology and checks out connection' , async function ( ) {
614+ const checkoutStarted = once ( client , 'connectionCheckOutStarted' ) ;
615+ await client . connect ( ) ;
616+ const checkout = await checkoutStarted ;
617+ expect ( checkout ) . to . exist ;
618+ expect ( client ) . to . have . property ( 'topology' ) . that . is . instanceOf ( Topology ) ;
619+ } ) ;
640620
641621 it (
642622 'permits operations to be run after connect is called' ,
0 commit comments