diff options
Diffstat (limited to 'tests/specs/future/runtime_api/main.js')
-rw-r--r-- | tests/specs/future/runtime_api/main.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/specs/future/runtime_api/main.js b/tests/specs/future/runtime_api/main.js index a79185e92..b44291218 100644 --- a/tests/specs/future/runtime_api/main.js +++ b/tests/specs/future/runtime_api/main.js @@ -92,6 +92,19 @@ try { } } +// 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"); + } +} console.log("Deno.customInspect is", Deno.customInspect); self.close(); |