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' }