From fd21968dc9a02a710d545899a673ccd25a52758c Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Thu, 13 Aug 2026 20:38:41 +0800 Subject: [PATCH] test(api): fix cancellation error fixture (#677) --- src/api/__tests__/client.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/__tests__/client.spec.ts b/src/api/__tests__/client.spec.ts index c97eae10..a3684a34 100644 --- a/src/api/__tests__/client.spec.ts +++ b/src/api/__tests__/client.spec.ts @@ -182,8 +182,8 @@ describe('MoviePilot API client', () => { it('取消请求保持原始 CanceledError,且不提示或触发离线探测', async () => { const reportConnectionFailure = vi.fn() - const adapter: AxiosAdapter = async config => { - throw new CanceledError('Request cancelled', config) + const adapter: AxiosAdapter = async () => { + throw new CanceledError('Request cancelled') } const { api } = createApiClients({ adapter, hooks: { reportConnectionFailure }, notifier })