summaryrefslogtreecommitdiff
path: root/std/http/server_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/http/server_test.ts')
-rw-r--r--std/http/server_test.ts10
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;
- });
-}
+ }
+});