diff options
author | Luca Casonato <hello@lcas.dev> | 2022-02-16 16:51:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 16:51:32 +0100 |
commit | be9c2fe267083a2995043ddf6228946f1244ab57 (patch) | |
tree | 8f0993492b058c6c4127297c1e8a5a7ad5078fca /cli/tests/unit/http_test.ts | |
parent | 8891c19c57773a5ce3d58dbec20a8d37d780ff63 (diff) |
tests: deflake a bunch of net related tests (#13685)
Diffstat (limited to 'cli/tests/unit/http_test.ts')
-rw-r--r-- | cli/tests/unit/http_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/unit/http_test.ts b/cli/tests/unit/http_test.ts index 8ff31b5f7..2682ccee6 100644 --- a/cli/tests/unit/http_test.ts +++ b/cli/tests/unit/http_test.ts @@ -926,11 +926,11 @@ Deno.test( let httpConn: Deno.HttpConn; const promise = (async () => { - listener = Deno.listen({ port: 4502 }); + listener = Deno.listen({ port: 4508 }); for await (const conn of listener) { httpConn = Deno.serveHttp(conn); for await (const { request, respondWith } of httpConn) { - assertEquals(new URL(request.url).href, "http://127.0.0.1:4502/"); + assertEquals(new URL(request.url).href, "http://127.0.0.1:4508/"); // not reading request body on purpose respondWith(new Response("ok")); } @@ -938,7 +938,7 @@ Deno.test( })(); const resourcesBefore = Deno.resources(); - const response = await fetch("http://127.0.0.1:4502", { + const response = await fetch("http://127.0.0.1:4508", { method: "POST", body: "hello world", }); |