@@ -434,7 +434,8 @@ describe("When configured for HTTPS", () => {
434434 const tlsSocket = await openRawTlsSocket ( server , {
435435 rejectUnauthorized : false ,
436436 minVersion : 'TLSv1.2' ,
437- maxVersion : 'TLSv1.2'
437+ maxVersion : 'TLSv1.2' ,
438+ ciphers : 'DEFAULT@SECLEVEL=0'
438439 } ) ;
439440
440441 expect ( tlsSocket . getProtocol ( ) ) . to . equal ( 'TLSv1.2' ) ;
@@ -446,11 +447,13 @@ describe("When configured for HTTPS", () => {
446447 await openRawTlsSocket ( server , {
447448 rejectUnauthorized : false ,
448449 minVersion : 'TLSv1' ,
449- maxVersion : 'TLSv1'
450+ maxVersion : 'TLSv1' ,
451+ ciphers : 'DEFAULT@SECLEVEL=0'
450452 } ) ;
451453 throw new Error ( 'Expected connection to fail' ) ;
452454 } catch ( e : any ) {
453455 expect ( e . code ) . to . equal ( 'ERR_SSL_TLSV1_ALERT_PROTOCOL_VERSION' ) ;
456+
454457 }
455458 } ) ;
456459
@@ -459,7 +462,8 @@ describe("When configured for HTTPS", () => {
459462 await openRawTlsSocket ( server , {
460463 rejectUnauthorized : false ,
461464 minVersion : 'TLSv1.1' ,
462- maxVersion : 'TLSv1.1'
465+ maxVersion : 'TLSv1.1' ,
466+ ciphers : 'DEFAULT@SECLEVEL=0'
463467 } ) ;
464468 throw new Error ( 'Expected connection to fail' ) ;
465469 } catch ( e : any ) {
@@ -471,7 +475,8 @@ describe("When configured for HTTPS", () => {
471475 const tlsSocket = await openRawTlsSocket ( server , {
472476 rejectUnauthorized : false ,
473477 minVersion : 'TLSv1.3' ,
474- maxVersion : 'TLSv1.3'
478+ maxVersion : 'TLSv1.3' ,
479+ ciphers : 'DEFAULT@SECLEVEL=0'
475480 } ) ;
476481
477482 expect ( tlsSocket . getProtocol ( ) ) . to . equal ( 'TLSv1.3' ) ;
0 commit comments