diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-08-11 10:20:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 10:20:47 -0400 |
commit | 15a763152f9d392cb80692262f8de5ef8ae15495 (patch) | |
tree | fcd1a59777f95920bf3502519983d6cc0d882a9a /cli/tests/echo_server.ts | |
parent | a0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff) |
chore: move test files to testdata directory (#11601)
Diffstat (limited to 'cli/tests/echo_server.ts')
-rw-r--r-- | cli/tests/echo_server.ts | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cli/tests/echo_server.ts b/cli/tests/echo_server.ts deleted file mode 100644 index 84284bea1..000000000 --- a/cli/tests/echo_server.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { copy } from "../../test_util/std/io/util.ts"; -const addr = Deno.args[0] || "0.0.0.0:4544"; -const [hostname, port] = addr.split(":"); -const listener = Deno.listen({ hostname, port: Number(port) }); -console.log("listening on", addr); -listener.accept().then( - async (conn) => { - console.log("received bytes:", await copy(conn, conn)); - conn.close(); - listener.close(); - }, -); |