diff options
author | 2023-03-19 16:51:13 -0700 | |
---|---|---|
committer | 2023-03-19 16:51:13 -0700 | |
commit | 9ce18245d18c4d5c0b251294438a02f63409b407 (patch) | |
tree | 2e2d5257f074261e6a3d68fe7ccd80bd6277e656 /test/js/web/fetch/fetch-gzip.test.ts | |
parent | 5a23d176208bb38483b65b9420b18c8597fabfef (diff) | |
download | bun-9ce18245d18c4d5c0b251294438a02f63409b407.tar.gz bun-9ce18245d18c4d5c0b251294438a02f63409b407.tar.zst bun-9ce18245d18c4d5c0b251294438a02f63409b407.zip |
Remove usages of port numbers in tests
Diffstat (limited to 'test/js/web/fetch/fetch-gzip.test.ts')
-rw-r--r-- | test/js/web/fetch/fetch-gzip.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/js/web/fetch/fetch-gzip.test.ts b/test/js/web/fetch/fetch-gzip.test.ts index 01eedc54a..91ea8de9f 100644 --- a/test/js/web/fetch/fetch-gzip.test.ts +++ b/test/js/web/fetch/fetch-gzip.test.ts @@ -5,7 +5,7 @@ import { gc, gcTick } from "harness"; it("fetch() with a buffered gzip response works (one chunk)", async () => { var server = Bun.serve({ - port: 6025, + port: 0, async fetch(req) { gcTick(true); @@ -35,7 +35,7 @@ it("fetch() with a buffered gzip response works (one chunk)", async () => { it("fetch() with a redirect that returns a buffered gzip response works (one chunk)", async () => { var server = Bun.serve({ - port: 6020, + port: 0, async fetch(req) { if (req.url.endsWith("/redirect")) @@ -60,7 +60,7 @@ it("fetch() with a redirect that returns a buffered gzip response works (one chu it("fetch() with a protocol-relative redirect that returns a buffered gzip response works (one chunk)", async () => { const server = Bun.serve({ - port: 5018, + port: 0, async fetch(req, server) { if (req.url.endsWith("/redirect")) @@ -89,7 +89,7 @@ it("fetch() with a protocol-relative redirect that returns a buffered gzip respo it("fetch() with a gzip response works (one chunk, streamed, with a delay", async () => { var server = Bun.serve({ - port: 6081, + port: 0, fetch(req) { return new Response( @@ -126,7 +126,7 @@ it("fetch() with a gzip response works (multiple chunks, TCP server", async done const compressed = await Bun.file(import.meta.dir + "/fixture.html.gz").arrayBuffer(); var socketToClose; const server = Bun.listen({ - port: 4024, + port: 0, hostname: "0.0.0.0", socket: { async open(socket) { |