Skip to content

Commit

Permalink
Small cleanups in perrmission_prompt_test.ts (denoland#3188)
Browse files Browse the repository at this point in the history
  • Loading branch information
J2P authored and piscisaureus committed Oct 23, 2019
1 parent 2804ba8 commit 4bebbda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/permission_prompt_test.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 4bebbda

Please sign in to comment.