Skip to content

Commit 5262e77

Browse files
committed
Disable old TLS tests in Node 18 - unusable due to OpenSSL update
1 parent c6e410c commit 5262e77

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

test/integration/proxy.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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";
2627
import { CA } from "../../src/util/tls";
2728
import { 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

test/test-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ export async function startDnsServer(callback: (question: dns2.DnsQuestion) => s
182182

183183
export const H2_TLS_ON_TLS_SUPPORTED = ">=12.17";
184184
export 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

186187
type Http2ResponseHeaders = http2.IncomingHttpHeaders & http2.IncomingHttpStatusHeader;
187188

0 commit comments

Comments
 (0)