summaryrefslogtreecommitdiff
path: root/tests/specs/future/runtime_api/main.js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-11 07:55:42 +1000
committerGitHub <noreply@github.com>2024-09-10 21:55:42 +0000
commitace1202227abeeac78db0266a13b451c1792a6ce (patch)
tree3319bc3defab8dddc04e3907b7b7bece821fe094 /tests/specs/future/runtime_api/main.js
parentbe0ba6d84f190f4fc1b4517e62d9d8ad30c8cfb1 (diff)
BREAKING(net): remove `Deno.ConnectTlsOptions.{certChain,certFile,privateKey}` and `Deno.ListenTlsOptions.certChain,certFile,keyFile}` (#25525)
Towards #22079
Diffstat (limited to 'tests/specs/future/runtime_api/main.js')
-rw-r--r--tests/specs/future/runtime_api/main.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/specs/future/runtime_api/main.js b/tests/specs/future/runtime_api/main.js
index a6415b3c1..1b6caac5f 100644
--- a/tests/specs/future/runtime_api/main.js
+++ b/tests/specs/future/runtime_api/main.js
@@ -31,40 +31,6 @@ try {
}
}
-// Note: this could throw with a `Deno.errors.NotFound` error if `keyFile` and
-// `certFile` were used.
-const conn1 = await Deno.connectTls({
- port: tlsPort,
- certFile: "foo",
- keyFile: "foo",
-});
-conn1.close();
-console.log("Deno.ConnectTlsOptions.(certFile|keyFile) do nothing");
-
-// Note: this could throw with a `Deno.errors.InvalidData` error if `certChain`
-// and `privateKey` were used.
-const conn2 = await Deno.connectTls({
- port: tlsPort,
- certChain: "foo",
- privateKey: "foo",
-});
-conn2.close();
-console.log("Deno.ConnectTlsOptions.(certChain|privateKey) do nothing");
-
tlsListener.close();
-// Note: this could throw with a `Deno.errors.NotFound` error if `keyFile` and
-// `certFile` were used.
-try {
- Deno.listenTls({ port: tlsPort, keyFile: "foo", certFile: "foo" });
-} catch (error) {
- if (
- error instanceof Deno.errors.InvalidData &&
- error.message ===
- "Deno.listenTls requires a key: Error creating TLS certificate"
- ) {
- console.log("Deno.ListenTlsOptions.(keyFile|certFile) do nothing");
- }
-}
-
self.close();