diff options
| author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-07-29 17:46:21 +0900 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-07-29 08:46:21 +0000 |
| commit | b76007d25caf2cd9325813149a907c1e51728fca (patch) | |
| tree | cc5faafb3985178f19f96bc9d5bd3d4198133346 /http | |
| parent | 44efefbda6d30edc602257c1a2501259e7ef9626 (diff) | |
refactor: use Deno.execPath where possible (denoland/deno_std#548)
Original: https://github.com/denoland/deno_std/commit/287b0a9cd259952387739405152e031e9abcdb63
Diffstat (limited to 'http')
| -rw-r--r-- | http/file_server_test.ts | 2 | ||||
| -rw-r--r-- | http/racing_server_test.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/http/file_server_test.ts b/http/file_server_test.ts index 52d6ec688..bac82e825 100644 --- a/http/file_server_test.ts +++ b/http/file_server_test.ts @@ -11,7 +11,7 @@ let fileServer: Deno.Process; async function startFileServer(): Promise<void> { fileServer = run({ args: [ - "deno", + Deno.execPath, "run", "--allow-read", "--allow-net", diff --git a/http/racing_server_test.ts b/http/racing_server_test.ts index dc16a49e1..a34f915d5 100644 --- a/http/racing_server_test.ts +++ b/http/racing_server_test.ts @@ -8,7 +8,7 @@ import { TextProtoReader } from "../textproto/mod.ts"; let server: Deno.Process; async function startServer(): Promise<void> { server = run({ - args: ["deno", "run", "-A", "http/racing_server.ts"], + args: [Deno.execPath, "run", "-A", "http/racing_server.ts"], stdout: "piped" }); // Once racing server is ready it will write to its stdout. |
