From eddb916883901385233bea24313e2920fcac5388 Mon Sep 17 00:00:00 2001 From: Ali Hasani Date: Sun, 17 May 2020 21:41:24 +0430 Subject: Implement Deno.kill for windows (#5347) --- std/http/server_test.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'std/http/server_test.ts') diff --git a/std/http/server_test.ts b/std/http/server_test.ts index 807695c6b..0560f7f8d 100644 --- a/std/http/server_test.ts +++ b/std/http/server_test.ts @@ -351,12 +351,15 @@ test("requestBodyReaderWithTransferEncoding", async function (): Promise { test({ name: "destroyed connection", - // FIXME(bartlomieju): hangs on windows, cause can't do `Deno.kill` - ignore: true, fn: async (): Promise => { // Runs a simple server as another process const p = Deno.run({ - cmd: [Deno.execPath(), "--allow-net", "http/testdata/simple_server.ts"], + cmd: [ + Deno.execPath(), + "run", + "--allow-net", + "http/testdata/simple_server.ts", + ], stdout: "piped", }); @@ -392,13 +395,12 @@ test({ test({ name: "serveTLS", - // FIXME(bartlomieju): hangs on windows, cause can't do `Deno.kill` - ignore: true, fn: async (): Promise => { // Runs a simple server as another process const p = Deno.run({ cmd: [ Deno.execPath(), + "run", "--allow-net", "--allow-read", "http/testdata/simple_https_server.ts", -- cgit v1.2.3