diff options
author | Ali Hasani <a.hassssani@gmail.com> | 2020-04-30 15:17:53 +0430 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 12:47:53 +0200 |
commit | c569d958aaf49db70856a60d75954c83ab8bd95a (patch) | |
tree | 80b61ce571ba0fbaeb0df1ed46febf99b743e3fa /std/examples/chat/server_test.ts | |
parent | 4bc9c18fe96a30f2fb8262e3ea139ce628b7f4e5 (diff) |
fix(std): use fromFileUrl (#5005)
Diffstat (limited to 'std/examples/chat/server_test.ts')
-rw-r--r-- | std/examples/chat/server_test.ts | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/std/examples/chat/server_test.ts b/std/examples/chat/server_test.ts index 74d4fefce..1aba4208a 100644 --- a/std/examples/chat/server_test.ts +++ b/std/examples/chat/server_test.ts @@ -5,7 +5,7 @@ import { BufReader } from "../../io/bufio.ts"; import { connectWebSocket, WebSocket } from "../../ws/mod.ts"; import { delay } from "../../util/async.ts"; -const { test, build } = Deno; +const { test } = Deno; async function startServer(): Promise<Deno.Process> { const server = Deno.run({ @@ -26,12 +26,8 @@ async function startServer(): Promise<Deno.Process> { return server; } -// TODO: https://github.com/denoland/deno/issues/4108 -const ignore = build.os == "windows"; - test({ - ignore, - name: "GET / should serve html", + name: "[examples/chat] GET / should serve html", async fn() { const server = await startServer(); try { @@ -49,8 +45,7 @@ test({ }); test({ - ignore, - name: "GET /ws should upgrade conn to ws", + name: "[examples/chat] GET /ws should upgrade conn to ws", async fn() { const server = await startServer(); let ws: WebSocket | undefined; |