summaryrefslogtreecommitdiff
path: root/tests/specs/future/runtime_api/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/future/runtime_api/main.js')
-rw-r--r--tests/specs/future/runtime_api/main.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/specs/future/runtime_api/main.js b/tests/specs/future/runtime_api/main.js
index 1b6caac5f..8ccbf0ba0 100644
--- a/tests/specs/future/runtime_api/main.js
+++ b/tests/specs/future/runtime_api/main.js
@@ -1,24 +1,5 @@
console.log("window is", globalThis.window);
-// TCP
-// Since these tests may run in parallel, ensure this port is unique to this file
-const tcpPort = 4509;
-const tcpListener = Deno.listen({ port: tcpPort });
-console.log("Deno.Listener.prototype.rid is", tcpListener.rid);
-tcpListener.close();
-
-// TLS
-// Since these tests may run in parallel, ensure this port is unique to this file
-const tlsPort = 4510;
-const cert = Deno.readTextFileSync(
- new URL("../../../testdata/tls/localhost.crt", import.meta.url),
-);
-const key = Deno.readTextFileSync(
- new URL("../../../testdata/tls/localhost.key", import.meta.url),
-);
-const tlsListener = Deno.listenTls({ port: tlsPort, cert, key });
-console.log("Deno.TlsListener.prototype.rid is", tlsListener.rid);
-
try {
new Deno.FsFile(0);
} catch (error) {
@@ -31,6 +12,4 @@ try {
}
}
-tlsListener.close();
-
self.close();