From ace1202227abeeac78db0266a13b451c1792a6ce Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 11 Sep 2024 07:55:42 +1000 Subject: BREAKING(net): remove `Deno.ConnectTlsOptions.{certChain,certFile,privateKey}` and `Deno.ListenTlsOptions.certChain,certFile,keyFile}` (#25525) Towards #22079 --- tests/unit_node/tls_test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/unit_node') diff --git a/tests/unit_node/tls_test.ts b/tests/unit_node/tls_test.ts index 6033efa31..4ee622a67 100644 --- a/tests/unit_node/tls_test.ts +++ b/tests/unit_node/tls_test.ts @@ -10,10 +10,8 @@ import * as stream from "node:stream"; const tlsTestdataDir = fromFileUrl( new URL("../testdata/tls", import.meta.url), ); -const keyFile = join(tlsTestdataDir, "localhost.key"); -const certFile = join(tlsTestdataDir, "localhost.crt"); -const key = Deno.readTextFileSync(keyFile); -const cert = Deno.readTextFileSync(certFile); +const key = Deno.readTextFileSync(join(tlsTestdataDir, "localhost.key")); +const cert = Deno.readTextFileSync(join(tlsTestdataDir, "localhost.crt")); const rootCaCert = Deno.readTextFileSync(join(tlsTestdataDir, "RootCA.pem")); for ( -- cgit v1.2.3