@@ -842,32 +842,6 @@ describe('When executing an operation for the first time', () => {
842842 } ) ;
843843 } ) ;
844844
845- describe (
846- 'when the server requires auth and ping is delayed' ,
847- { requires : { auth : 'enabled' , mongodb : '>=4.4' } } ,
848- function ( ) {
849- beforeEach ( async function ( ) {
850- // set failpoint to delay ping
851- // create new util client to avoid affecting the test client
852- const utilClient = this . configuration . newClient ( ) ;
853- await utilClient . db ( 'admin' ) . command ( {
854- configureFailPoint : 'failCommand' ,
855- mode : { times : 1 } ,
856- data : { failCommands : [ 'ping' ] , blockConnection : true , blockTimeMS : 1000 }
857- } as FailPoint ) ;
858- await utilClient . close ( ) ;
859- } ) ;
860-
861- it ( 'timeoutMS from the client is not used for the internal `ping`' , async function ( ) {
862- const start = performance . now ( ) ;
863- const returnedClient = await client . connect ( ) ;
864- const end = performance . now ( ) ;
865- expect ( returnedClient ) . to . equal ( client ) ;
866- expect ( end - start ) . to . be . within ( 1000 , 1500 ) ; // timeoutMS is 1000, did not apply.
867- } ) ;
868- }
869- ) ;
870-
871845 describe (
872846 'when server selection takes longer than the timeout' ,
873847 { requires : { auth : 'enabled' , mongodb : '>=4.4' } } ,
0 commit comments