fix: Host API port conflict crashing startup on Windows (#743)

This commit is contained in:
paisley
2026-04-02 12:00:43 +08:00
committed by GitHub
Unverified
parent 06266cb4d2
commit 7e2c4d3835
8 changed files with 32 additions and 20 deletions

View File

@@ -43,7 +43,7 @@ describe('handleCronRoutes', () => {
const handled = await handleCronRoutes(
{ method: 'POST' } as IncomingMessage,
{} as ServerResponse,
new URL('http://127.0.0.1:3210/api/cron/jobs'),
new URL('http://127.0.0.1:13210/api/cron/jobs'),
{
gatewayManager: { rpc },
} as never,
@@ -89,7 +89,7 @@ describe('handleCronRoutes', () => {
await handleCronRoutes(
{ method: 'PUT' } as IncomingMessage,
{} as ServerResponse,
new URL('http://127.0.0.1:3210/api/cron/jobs/job-2'),
new URL('http://127.0.0.1:13210/api/cron/jobs/job-2'),
{
gatewayManager: { rpc },
} as never,
@@ -139,7 +139,7 @@ describe('handleCronRoutes', () => {
await handleCronRoutes(
{ method: 'PUT' } as IncomingMessage,
{} as ServerResponse,
new URL('http://127.0.0.1:3210/api/cron/jobs/job-account'),
new URL('http://127.0.0.1:13210/api/cron/jobs/job-account'),
{
gatewayManager: { rpc },
} as never,
@@ -178,7 +178,7 @@ describe('handleCronRoutes', () => {
const handled = await handleCronRoutes(
{ method: 'POST' } as IncomingMessage,
{} as ServerResponse,
new URL('http://127.0.0.1:3210/api/cron/jobs'),
new URL('http://127.0.0.1:13210/api/cron/jobs'),
{
gatewayManager: { rpc },
} as never,