Skip to content

Commit

Permalink
dont hardcode this port number
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Dec 27, 2024
1 parent 8d5c915 commit 7f23e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/js/bun/net/socket.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ it("should allow large amounts of data to be sent and received", async () => {

it("it should not crash when getting a ReferenceError on client socket open", async () => {
using server = Bun.serve({
port: 8080,
port: 0,
hostname: "localhost",
fetch() {
return new Response("Hello World");
Expand Down Expand Up @@ -413,7 +413,7 @@ it("it should not crash when getting a ReferenceError on client socket open", as

it("it should not crash when returning a Error on client socket open", async () => {
using server = Bun.serve({
port: 8080,
port: 0,
hostname: "localhost",
fetch() {
return new Response("Hello World");
Expand Down

0 comments on commit 7f23e26

Please sign in to comment.