From ac56c57d3c7c799632461df98e8200d6b62ed60f Mon Sep 17 00:00:00 2001 From: Sebastien Ringrose Date: Sat, 9 Mar 2024 15:33:19 +0000 Subject: [PATCH] fix: ports in CI --- scripts/bun/profile.ts | 4 ++-- scripts/deno/main.ts | 7 ++++++- scripts/deno/profile.ts | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/bun/profile.ts b/scripts/bun/profile.ts index 4a2c6fc9..eade3a18 100644 --- a/scripts/bun/profile.ts +++ b/scripts/bun/profile.ts @@ -3,7 +3,7 @@ import { getTestRouter } from "../../tests/mocks/middleware.ts"; const testRouter = getTestRouter(); const server = Bun.serve({ - port: 9797, + port: 8080, fetch(req) { return testRouter.handle(req); }, @@ -15,7 +15,7 @@ const handleResults = await Profiler.run(testRouter, { }); const serveResults = await Profiler.run(testRouter, { mode: "serve", - url: "http://localhost:7777", + url: "http://localhost:8080", count: 100, }); diff --git a/scripts/deno/main.ts b/scripts/deno/main.ts index 4958904f..d2e897e9 100644 --- a/scripts/deno/main.ts +++ b/scripts/deno/main.ts @@ -1,6 +1,11 @@ import router from "../../example/preactSSR/router.ts"; // Start Deno server with Peko router :^) -Deno.serve((req) => router.handle(req)); +Deno.serve( + { + port: 7777, + }, + (req) => router.handle(req) +); console.log("Deno server running with Peko router <3"); diff --git a/scripts/deno/profile.ts b/scripts/deno/profile.ts index 0b360685..9f388fce 100644 --- a/scripts/deno/profile.ts +++ b/scripts/deno/profile.ts @@ -5,7 +5,7 @@ const testRouter = getTestRouter(); const abortController = new AbortController(); Deno.serve( { - port: 7778, + port: 7777, signal: abortController.signal, }, (req) => testRouter.handle(req)