From 0939fd65493bcbcbcdeda08bc1682d106b5f84e8 Mon Sep 17 00:00:00 2001 From: LogosVeritas Date: Mon, 26 Oct 2026 13:45:06 +0800 Subject: [PATCH] fix(test): retry busy git transport fixture cleanup Bound temporary-directory removal retries after probes and HTTP fixtures finish, preserving cleanup errors when retries are exhausted. --- packages/boot/plugin-manager/tests/git-transport.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/boot/plugin-manager/tests/git-transport.spec.ts b/packages/boot/plugin-manager/tests/git-transport.spec.ts index 36d043b6b8..31fc22e6a0 100644 --- a/packages/boot/plugin-manager/tests/git-transport.spec.ts +++ b/packages/boot/plugin-manager/tests/git-transport.spec.ts @@ -26,7 +26,8 @@ const SSH_SPEC = `git+ssh://git@git.example/team/sub/plugin.git#${'a'.repeat(40) async function fixture() { const dir = await mkdtemp(join(tmpdir(), 'dsh-git-transport-')) - onTestFinished(() => rm(dir, { recursive: true, force: true })) + // Retry Windows directory-busy errors after awaited probe cleanup. + onTestFinished(() => rm(dir, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 })) const config = join(dir, 'git.config') await writeFile(config, '') const env = { GIT_CONFIG_GLOBAL: config, GIT_CONFIG_NOSYSTEM: '1' }