diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-05-24 12:36:41 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 12:36:41 -0600 |
commit | 0fbfdaf90147aa0dd5dce6d2df6c0c0691f8cc4a (patch) | |
tree | 9f71651742e8ffc933adbe33e5f83f7d0db2f9ca /cli/tests/unit/http_test.ts | |
parent | 1174715f9904b7e7b95c16ff34da6e9094c3003d (diff) |
chore(core): Ensure that net test ports aren't used elsewhere (#19243)
Fixes occasional test flake due to overlapping ports
Diffstat (limited to 'cli/tests/unit/http_test.ts')
-rw-r--r-- | cli/tests/unit/http_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/http_test.ts b/cli/tests/unit/http_test.ts index d9d1655fa..549234986 100644 --- a/cli/tests/unit/http_test.ts +++ b/cli/tests/unit/http_test.ts @@ -943,7 +943,7 @@ Deno.test( file.close(); let httpConn: Deno.HttpConn; - const listener = Deno.listen({ port: 4503 }); + const listener = Deno.listen({ port: 4501 }); const promise = (async () => { const conn = await listener.accept(); httpConn = Deno.serveHttp(conn); @@ -952,7 +952,7 @@ Deno.test( const f = await Deno.open(tmpFile, { read: true }); await respondWith(new Response(f.readable, { status: 200 })); })(); - const resp = await fetch("http://127.0.0.1:4503/"); + const resp = await fetch("http://127.0.0.1:4501/"); const body = await resp.arrayBuffer(); assertEquals(body.byteLength, 70 * 1024); await promise; |