diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/specs/future/runtime_api/main.js | 25 | ||||
-rw-r--r-- | tests/specs/future/runtime_api/main.out | 3 | ||||
-rw-r--r-- | tests/unit/net_test.ts | 15 | ||||
-rw-r--r-- | tests/unit/tls_test.ts | 2 |
4 files changed, 0 insertions, 45 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) { diff --git a/tests/specs/future/runtime_api/main.out b/tests/specs/future/runtime_api/main.out index d4c6ab326..7ca664c30 100644 --- a/tests/specs/future/runtime_api/main.out +++ b/tests/specs/future/runtime_api/main.out @@ -1,10 +1,7 @@ window is undefined Deno.FsFile.prototype.rid is undefined Deno.Listener.prototype.rid is undefined -Deno.Conn.prototype.rid is undefined -Deno.UnixConn.prototype.rid is undefined Deno.TlsListener.prototype.rid is undefined -Deno.TlsConn.prototype.rid is undefined Deno.FsFile constructor is illegal Deno.ConnectTlsOptions.(certFile|keyFile) do nothing Deno.ConnectTlsOptions.(certChain|privateKey) do nothing diff --git a/tests/unit/net_test.ts b/tests/unit/net_test.ts index 1428a804f..6265579a2 100644 --- a/tests/unit/net_test.ts +++ b/tests/unit/net_test.ts @@ -236,9 +236,6 @@ Deno.test({ permissions: { net: true } }, async function netTcpDialListen() { assertEquals(1, buf[0]); assertEquals(2, buf[1]); assertEquals(3, buf[2]); - if (!DENO_FUTURE) { - assert(conn.rid > 0); - } assert(readResult !== null); @@ -274,9 +271,6 @@ Deno.test({ permissions: { net: true } }, async function netTcpSetNoDelay() { assertEquals(1, buf[0]); assertEquals(2, buf[1]); assertEquals(3, buf[2]); - if (!DENO_FUTURE) { - assert(conn.rid > 0); - } assert(readResult !== null); @@ -312,9 +306,6 @@ Deno.test({ permissions: { net: true } }, async function netTcpSetKeepAlive() { assertEquals(1, buf[0]); assertEquals(2, buf[1]); assertEquals(3, buf[2]); - if (!DENO_FUTURE) { - assert(conn.rid > 0); - } assert(readResult !== null); @@ -352,9 +343,6 @@ Deno.test( assertEquals(1, buf[0]); assertEquals(2, buf[1]); assertEquals(3, buf[2]); - if (!DENO_FUTURE) { - assert(conn.rid > 0); - } assert(readResult !== null); @@ -850,9 +838,6 @@ Deno.test( assertEquals(1, buf[0]); assertEquals(2, buf[1]); assertEquals(3, buf[2]); - if (!DENO_FUTURE) { - assert(conn.rid > 0); - } assert(readResult !== null); diff --git a/tests/unit/tls_test.ts b/tests/unit/tls_test.ts index e5b9a02c3..7dcc9abaf 100644 --- a/tests/unit/tls_test.ts +++ b/tests/unit/tls_test.ts @@ -221,7 +221,6 @@ Deno.test( ); const conn = await Deno.connectTls({ hostname, port, caCerts }); - assert(DENO_FUTURE || conn.rid > 0); const w = new BufWriter(conn); const r = new BufReader(conn); const body = `GET / HTTP/1.1\r\nHost: ${hostname}:${port}\r\n\r\n`; @@ -273,7 +272,6 @@ Deno.test( ); const conn = await Deno.connectTls({ hostname, port, caCerts }); - assert(DENO_FUTURE || conn.rid > 0); const w = new BufWriter(conn); const r = new BufReader(conn); const body = `GET / HTTP/1.1\r\nHost: ${hostname}:${port}\r\n\r\n`; |