Skip to content

Commit

Permalink
fix: ports in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Ringrose committed Mar 9, 2024
1 parent 9c45688 commit ac56c57
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/bun/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand All @@ -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,
});

Expand Down
7 changes: 6 additions & 1 deletion scripts/deno/main.ts
Original file line number Diff line number Diff line change
@@ -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");
2 changes: 1 addition & 1 deletion scripts/deno/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const testRouter = getTestRouter();
const abortController = new AbortController();
Deno.serve(
{
port: 7778,
port: 7777,
signal: abortController.signal,
},
(req) => testRouter.handle(req)
Expand Down

0 comments on commit ac56c57

Please sign in to comment.