From 9ce18245d18c4d5c0b251294438a02f63409b407 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sun, 19 Mar 2023 16:51:13 -0700 Subject: Remove usages of port numbers in tests --- test/js/web/fetch/fetch-gzip.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/js/web/fetch/fetch-gzip.test.ts') 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) { -- cgit v1.2.3