diff options
Diffstat (limited to 'std/http/racing_server_test.ts')
-rw-r--r-- | std/http/racing_server_test.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/std/http/racing_server_test.ts b/std/http/racing_server_test.ts index 8daf7c4dc..88ef3ab2f 100644 --- a/std/http/racing_server_test.ts +++ b/std/http/racing_server_test.ts @@ -1,11 +1,15 @@ import { assert, assertEquals } from "../testing/asserts.ts"; import { BufReader, BufWriter } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; +import { dirname, fromFileUrl } from "../path/mod.ts"; + +const moduleDir = dirname(fromFileUrl(import.meta.url)); let server: Deno.Process<Deno.RunOptions & { stdout: "piped" }>; async function startServer(): Promise<void> { server = Deno.run({ - cmd: [Deno.execPath(), "run", "-A", "http/racing_server.ts"], + cmd: [Deno.execPath(), "run", "-A", "racing_server.ts"], + cwd: moduleDir, stdout: "piped", }); // Once racing server is ready it will write to its stdout. |