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

@@ -24,7 +24,7 @@ describe('handleUsageRoutes', () => {
const handled = await handleUsageRoutes(
{ method: 'GET' } as IncomingMessage,
{} as ServerResponse,
new URL('http://127.0.0.1:3210/api/usage/recent-token-history'),
new URL('http://127.0.0.1:13210/api/usage/recent-token-history'),
{} as never,
);
@@ -44,7 +44,7 @@ describe('handleUsageRoutes', () => {
await handleUsageRoutes(
{ method: 'GET' } as IncomingMessage,
{} as ServerResponse,
new URL('http://127.0.0.1:3210/api/usage/recent-token-history?limit=50.9'),
new URL('http://127.0.0.1:13210/api/usage/recent-token-history?limit=50.9'),
{} as never,
);