From 2361eaebec28e0e55a5d232fdaa3e19c9ff53dac Mon Sep 17 00:00:00 2001 From: creatixchu Date: Fri, 30 Oct 2026 13:58:35 +0800 Subject: [PATCH] test(plugin-market): isolate Git probe call assertions --- packages/boot/plugin-market/tests/repository-cache.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/boot/plugin-market/tests/repository-cache.spec.ts b/packages/boot/plugin-market/tests/repository-cache.spec.ts index 501ce07d51..e01172bd7e 100644 --- a/packages/boot/plugin-market/tests/repository-cache.spec.ts +++ b/packages/boot/plugin-market/tests/repository-cache.spec.ts @@ -157,7 +157,7 @@ it('reports an unreachable host as a network failure, a failed local command as expect(readdirSync(join(root, 'cache'))).toEqual([]) const other = repository('t2', { 'README.md': 'x' }) // A real 1 ms deadline can expire during either the version probe or a later Git command. - const probe = vi.spyOn(subprocess, 'execa').mockResolvedValueOnce({ + const probe = vi.spyOn(subprocess, 'execa').mockClear().mockResolvedValueOnce({ failed: true, shortMessage: 'Command timed out: git --version', stdout: '', stderr: '', isMaxBuffer: false, } as Awaited>) try {