Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/lang/bun/files/patch-test_regression_issue_18547.test.ts
46591 views
1
-- Use port: 0 to let the OS assign a random available port.
2
-- Without this, Bun.serve defaults to port 3000, which causes EADDRINUSE
3
-- failures when tests run concurrently and another test is also using port 3000.
4
--- test/regression/issue/18547.test.ts.orig 2026-04-27 18:00:04 UTC
5
+++ test/regression/issue/18547.test.ts
6
@@ -2,6 +2,7 @@ test("18547", async () => {
7
8
test("18547", async () => {
9
using serve = Bun.serve({
10
+ port: 0,
11
routes: {
12
"/:foo": request => {
13
request.cookies.set("sessionToken", "123456");
14
15