diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-09-20 18:32:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-20 18:32:18 -0400 |
commit | 97bb2bdb79cbd0a400c643e7be0029440cb15633 (patch) | |
tree | 92c883d38b7af413fcbfbac82f17775a7064dfec /tools/permission_prompt_test.ts | |
parent | 93b7acf99d6456e6e194c03f024b788ce5adf20e (diff) |
dial/listen API change (#3000)
Previously: dial("tcp", "deno.land:80")
Now: dial({ hostname: "deno.land", port: 80, transport: "tcp" })
Similarly with listen().
Diffstat (limited to 'tools/permission_prompt_test.ts')
-rw-r--r-- | tools/permission_prompt_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/permission_prompt_test.ts b/tools/permission_prompt_test.ts index 617f8b0fc..da0c986ed 100644 --- a/tools/permission_prompt_test.ts +++ b/tools/permission_prompt_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -const { args, listen, env, exit, makeTempDirSync, readFileSync, run } = Deno; +const { args, env, exit, makeTempDirSync, readFileSync, run } = Deno; const firstCheckFailedMessage = "First check failed"; @@ -31,11 +31,11 @@ const test = { }, needsNet(): void { try { - listen("tcp", "127.0.0.1:4540"); + Deno.listen({ hostname: "127.0.0.1", port: 4540 }); } catch (e) { console.log(firstCheckFailedMessage); } - listen("tcp", "127.0.0.1:4541"); + Deno.listen({ hostname: "127.0.0.1", port: 4541 }); }, needsRun(): void { try { |