diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2020-03-15 12:03:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-15 13:03:25 +0100 |
commit | 6471d4cfabf27c0f5e7b340568aa88712d270541 (patch) | |
tree | 29ca29b6baeb4715a0b7eeb24aeaf8b0ed112e97 /std/http/server_test.ts | |
parent | 2f4be6e9441c7d5b0afd0d37dccd48d3057bcd3f (diff) |
refactor(std): Uncomment disabled tests, use skip option (#4378)
Diffstat (limited to 'std/http/server_test.ts')
-rw-r--r-- | std/http/server_test.ts | 10 |
1 files changed, 6 insertions, 4 deletions
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<void> => { // 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<void> => { +test({ + skip: Deno.build.os == "win", + name: "respond error handling", + async fn(): Promise<void> { const connClosedPromise = deferred(); const serverRoutine = async (): Promise<void> => { let reqCount = 0; @@ -498,5 +500,5 @@ if (Deno.build.os !== "win") { // conn on server side enters CLOSE_WAIT state. connClosedPromise.resolve(); await p; - }); -} + } +}); |