diff options
author | JaePil Jung <jjp5023@gmail.com> | 2019-10-23 16:31:46 +0900 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-10-23 00:31:46 -0700 |
commit | 4bebbda8db3c73725c9ee3ff528a0dad0e376f50 (patch) | |
tree | 24fec948c366ad17e1d0f55a04adc7db68239736 | |
parent | 2804ba8674150b80ee181cc3869e1fa12de661d3 (diff) |
Small cleanups in perrmission_prompt_test.ts (#3188)
-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 da0c986ed..2d01b4ad5 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, env, exit, makeTempDirSync, readFileSync, run } = Deno; +const { args, env, exit, listen, makeTempDirSync, readFileSync, run } = Deno; const firstCheckFailedMessage = "First check failed"; @@ -31,11 +31,11 @@ const test = { }, needsNet(): void { try { - Deno.listen({ hostname: "127.0.0.1", port: 4540 }); + listen({ hostname: "127.0.0.1", port: 4540 }); } catch (e) { console.log(firstCheckFailedMessage); } - Deno.listen({ hostname: "127.0.0.1", port: 4541 }); + listen({ hostname: "127.0.0.1", port: 4541 }); }, needsRun(): void { try { |