diff options
Diffstat (limited to 'cli/tests/unit')
| -rw-r--r-- | cli/tests/unit/fetch_test.ts | 6 | ||||
| -rw-r--r-- | cli/tests/unit/http_test.ts | 6 | ||||
| -rw-r--r-- | cli/tests/unit/net_test.ts | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/cli/tests/unit/fetch_test.ts b/cli/tests/unit/fetch_test.ts index 938df119d..3b2d765a5 100644 --- a/cli/tests/unit/fetch_test.ts +++ b/cli/tests/unit/fetch_test.ts @@ -656,7 +656,7 @@ Deno.test( permissions: { net: true }, }, async function fetchPostBodyString() { - const addr = "127.0.0.1:4502"; + const addr = "127.0.0.1:4511"; const bufPromise = bufferServer(addr); const body = "hello world"; const response = await fetch(`http://${addr}/blah`, { @@ -1039,7 +1039,7 @@ Deno.test( permissions: { net: true }, }, async function fetchPostBodyReadableStream() { - const addr = "127.0.0.1:4502"; + const addr = "127.0.0.1:4511"; const bufPromise = bufferServer(addr); const stream = new TransformStream(); const writer = stream.writable.getWriter(); @@ -1126,7 +1126,7 @@ Deno.test( async function fetchFilterOutCustomHostHeader(): Promise< void > { - const addr = "127.0.0.1:4502"; + const addr = "127.0.0.1:4511"; const listener = returnHostHeaderServer(addr); const response = await fetch(`http://${addr}/`, { headers: { "Host": "example.com" }, 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", }); diff --git a/cli/tests/unit/net_test.ts b/cli/tests/unit/net_test.ts index 3953d5866..29e823b10 100644 --- a/cli/tests/unit/net_test.ts +++ b/cli/tests/unit/net_test.ts @@ -156,7 +156,7 @@ Deno.test( Deno.test( { permissions: { net: true } }, async function netTcpConcurrentAccept() { - const listener = Deno.listen({ port: 4502 }); + const listener = Deno.listen({ port: 4510 }); let acceptErrCount = 0; const checkErr = (e: Error) => { if (e.message === "Listener has been closed") { |
