summaryrefslogtreecommitdiff
path: root/tests/unit/tls_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/tls_test.ts')
-rw-r--r--tests/unit/tls_test.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/tls_test.ts b/tests/unit/tls_test.ts
index 84c5e0f30..81d8de315 100644
--- a/tests/unit/tls_test.ts
+++ b/tests/unit/tls_test.ts
@@ -1633,3 +1633,16 @@ Deno.test(
}, Deno.errors.InvalidData);
},
);
+
+Deno.test(
+ { permissions: { net: true, read: true } },
+ function listenTLSEcKey() {
+ const listener = Deno.listenTls({
+ hostname: "localhost",
+ port: 0,
+ certFile: "tests/testdata/tls/localhost_ecc.crt",
+ keyFile: "tests/testdata/tls/localhost_ecc.key",
+ });
+ listener.close();
+ },
+);