diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-11 17:24:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 17:24:27 +0100 |
commit | 61273085e40fb4d992eef4b1b5601e3567c80664 (patch) | |
tree | 1ac0f401d4cb897bdb6f88e3a5c47fece2856f89 /std/http/racing_server_test.ts | |
parent | e0bcecee6042b219c6626172851af5a25362b948 (diff) |
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/http/racing_server_test.ts')
-rw-r--r-- | std/http/racing_server_test.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/std/http/racing_server_test.ts b/std/http/racing_server_test.ts index 27be0d79c..639935339 100644 --- a/std/http/racing_server_test.ts +++ b/std/http/racing_server_test.ts @@ -1,6 +1,5 @@ const { connect, run } = Deno; -import { test, runIfMain } from "../testing/mod.ts"; import { assert, assertEquals } from "../testing/asserts.ts"; import { BufReader } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; @@ -48,7 +47,7 @@ content-length: 8 World 4 `; -test(async function serverPipelineRace(): Promise<void> { +Deno.test(async function serverPipelineRace(): Promise<void> { await startServer(); const conn = await connect({ port: 4501 }); @@ -62,5 +61,3 @@ test(async function serverPipelineRace(): Promise<void> { } killServer(); }); - -runIfMain(import.meta); |