From 6471d4cfabf27c0f5e7b340568aa88712d270541 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 15 Mar 2020 12:03:25 +0000 Subject: refactor(std): Uncomment disabled tests, use skip option (#4378) --- std/http/server_test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'std/http') diff --git a/std/http/server_test.ts b/std/http/server_test.ts index fec487925..571c7332f 100644 --- a/std/http/server_test.ts +++ b/std/http/server_test.ts @@ -445,8 +445,10 @@ test("close server while iterating", async (): Promise => { // receive a RST and thus trigger an error during response for us to test. // We need to find a way to similarly trigger an error on Windows so that // we can test if connection is closed. -if (Deno.build.os !== "win") { - test("respond error handling", async (): Promise => { +test({ + skip: Deno.build.os == "win", + name: "respond error handling", + async fn(): Promise { const connClosedPromise = deferred(); const serverRoutine = async (): Promise => { let reqCount = 0; @@ -498,5 +500,5 @@ if (Deno.build.os !== "win") { // conn on server side enters CLOSE_WAIT state. connClosedPromise.resolve(); await p; - }); -} + } +}); -- cgit v1.2.3