File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ import {
2121 startDnsServer ,
2222 destroyable ,
2323 DestroyableServer ,
24- H2_TLS_ON_TLS_SUPPORTED
24+ H2_TLS_ON_TLS_SUPPORTED ,
25+ OLD_TLS_SUPPORTED
2526} from "../test-utils" ;
2627import { CA } from "../../src/util/tls" ;
2728import { isLocalIPv6Available } from "../../src/util/socket-util" ;
@@ -1167,6 +1168,10 @@ nodeOnly(() => {
11671168
11681169 describe ( "given a TLSv1 upstream server" , ( ) => {
11691170
1171+ before ( function ( ) {
1172+ if ( ! semver . satisfies ( process . version , OLD_TLS_SUPPORTED ) ) this . skip ( ) ;
1173+ } ) ;
1174+
11701175 let oldServerPort : number ;
11711176 let oldServer : DestroyableServer & https . Server ;
11721177
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ export async function startDnsServer(callback: (question: dns2.DnsQuestion) => s
182182
183183export const H2_TLS_ON_TLS_SUPPORTED = ">=12.17" ;
184184export const HTTP_ABORTSIGNAL_SUPPORTED = ">=14.17" ;
185+ export const OLD_TLS_SUPPORTED = "<17" ; // In 17+ TLS < v1.2 is only available with legacy OpenSSL flag
185186
186187type Http2ResponseHeaders = http2 . IncomingHttpHeaders & http2 . IncomingHttpStatusHeader ;
187188
You can’t perform that action at this time.
0 commit comments