mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
Small cleanups in perrmission_prompt_test.ts (#3188)
This commit is contained in:
parent
2804ba8674
commit
4bebbda8db
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
// 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";
|
const firstCheckFailedMessage = "First check failed";
|
||||||
|
|
||||||
|
@ -31,11 +31,11 @@ const test = {
|
||||||
},
|
},
|
||||||
needsNet(): void {
|
needsNet(): void {
|
||||||
try {
|
try {
|
||||||
Deno.listen({ hostname: "127.0.0.1", port: 4540 });
|
listen({ hostname: "127.0.0.1", port: 4540 });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(firstCheckFailedMessage);
|
console.log(firstCheckFailedMessage);
|
||||||
}
|
}
|
||||||
Deno.listen({ hostname: "127.0.0.1", port: 4541 });
|
listen({ hostname: "127.0.0.1", port: 4541 });
|
||||||
},
|
},
|
||||||
needsRun(): void {
|
needsRun(): void {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue