summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-11 09:14:50 +1000
committerGitHub <noreply@github.com>2024-09-11 01:14:50 +0200
commit4865ae13e1a637a86de1266f1f5147b6142872c6 (patch)
tree3c1ea1f29f5f5c8b854fba4de1ed504639c3472c /tests
parentace1202227abeeac78db0266a13b451c1792a6ce (diff)
BREAKING(net): remove `Deno.[Tls]Listener.prototype.rid` (#25556)
Towards #22079 --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/specs/future/runtime_api/main.js21
-rw-r--r--tests/specs/future/runtime_api/main.out2
-rw-r--r--tests/unit/net_test.ts5
3 files changed, 0 insertions, 28 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();
diff --git a/tests/specs/future/runtime_api/main.out b/tests/specs/future/runtime_api/main.out
index 70c62c305..8fef1407d 100644
--- a/tests/specs/future/runtime_api/main.out
+++ b/tests/specs/future/runtime_api/main.out
@@ -1,4 +1,2 @@
window is undefined
-Deno.Listener.prototype.rid is undefined
-Deno.TlsListener.prototype.rid is undefined
Deno.FsFile constructor is illegal
diff --git a/tests/unit/net_test.ts b/tests/unit/net_test.ts
index b7230da25..c243da47f 100644
--- a/tests/unit/net_test.ts
+++ b/tests/unit/net_test.ts
@@ -2,11 +2,9 @@
import {
assert,
assertEquals,
- assertNotEquals,
assertRejects,
assertThrows,
delay,
- DENO_FUTURE,
execCode,
execCode2,
tmpUnixSocketPath,
@@ -28,9 +26,6 @@ Deno.test({ permissions: { net: true } }, function netTcpListenClose() {
assert(listener.addr.transport === "tcp");
assertEquals(listener.addr.hostname, "127.0.0.1");
assertEquals(listener.addr.port, listenPort);
- if (!DENO_FUTURE) {
- assertNotEquals(listener.rid, 0);
- }
listener.close();
});