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

@@ -64,7 +64,7 @@ describe('host-api', () => {
expect(result.fallback).toBe(true);
expect(fetchMock).toHaveBeenCalledWith(
'http://127.0.0.1:3210/api/test',
'http://127.0.0.1:13210/api/test',
expect.objectContaining({ headers: expect.any(Object) }),
);
});
@@ -97,7 +97,7 @@ describe('host-api', () => {
expect(result.fallback).toBe(true);
expect(fetchMock).toHaveBeenCalledWith(
'http://127.0.0.1:3210/api/test',
'http://127.0.0.1:13210/api/test',
expect.objectContaining({ headers: expect.any(Object) }),
);
});