diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-07 09:01:36 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 23:01:36 +0000 |
commit | a9ed06b8324d4b139aea516d045bdbd091f15be9 (patch) | |
tree | f6bf30f56ed898cff310c34c7cf70a50651de622 /tests/specs/future/runtime_api/main.js | |
parent | 5bac4075c38c34ba53ce86e8ce6912d3be38c4bb (diff) |
BREAKING(net): remove `Deno.{Conn,TlsConn,TcpConn,UnixConn}.prototype.rid` (#25446)
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'tests/specs/future/runtime_api/main.js')
-rw-r--r-- | tests/specs/future/runtime_api/main.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/specs/future/runtime_api/main.js b/tests/specs/future/runtime_api/main.js index 23884c961..509e5aa5e 100644 --- a/tests/specs/future/runtime_api/main.js +++ b/tests/specs/future/runtime_api/main.js @@ -9,28 +9,8 @@ console.log( const tcpPort = 4509; const tcpListener = Deno.listen({ port: tcpPort }); console.log("Deno.Listener.prototype.rid is", tcpListener.rid); - -const tcpConn = await Deno.connect({ port: tcpPort }); -console.log("Deno.Conn.prototype.rid is", tcpConn.rid); - -tcpConn.close(); tcpListener.close(); -// Unix -if (Deno.build.os === "windows") { - console.log("Deno.UnixConn.prototype.rid is undefined"); -} else { - const socketPath = "./test.sock"; - const unixListener = Deno.listen({ transport: "unix", path: socketPath }); - - const unixConn = await Deno.connect({ transport: "unix", path: socketPath }); - console.log("Deno.UnixConn.prototype.rid is", unixConn.rid); - - unixConn.close(); - unixListener.close(); - Deno.removeSync(socketPath); -} - // TLS // Since these tests may run in parallel, ensure this port is unique to this file const tlsPort = 4510; @@ -43,11 +23,6 @@ const key = Deno.readTextFileSync( const tlsListener = Deno.listenTls({ port: tlsPort, cert, key }); console.log("Deno.TlsListener.prototype.rid is", tlsListener.rid); -const tlsConn = await Deno.connectTls({ port: tlsPort }); -console.log("Deno.TlsConn.prototype.rid is", tlsConn.rid); - -tlsConn.close(); - try { new Deno.FsFile(0); } catch (error) { |