From 1e2c0a7441c5dfc59f64c6ea203cd656ab813288 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Thu, 15 Oct 2026 02:50:41 -0700 Subject: [PATCH] test: allow Windows large recovery fixture to finish before cleanup (#29109) --- .../profile-state-large-recovery-crash.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/persistence/profile-state/profile-state-large-recovery-crash.test.ts b/src/main/persistence/profile-state/profile-state-large-recovery-crash.test.ts index 47999aa4811..11701ba95c1 100644 --- a/src/main/persistence/profile-state/profile-state-large-recovery-crash.test.ts +++ b/src/main/persistence/profile-state/profile-state-large-recovery-crash.test.ts @@ -28,10 +28,10 @@ beforeAll(() => { }) afterEach(() => { for (const root of roots.splice(0)) { - rmSync(root, { recursive: true, force: true }) + rmSync(root, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 }) } }) -afterAll(() => rmSync(suite, { recursive: true, force: true })) +afterAll(() => rmSync(suite, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 })) async function fixture() { const root = mkdtempSync(join(suite, 'profile-')) @@ -144,6 +144,7 @@ describe('large independent recovery copies under process death', () => { expect(snapshot(profile.databasePath)).toEqual({ json: selectedJson, revision: 3 }) expect(readFileSync(profile.backupPath).equals(profile.backupBytes)).toBe(true) }, - 30_000 + // Windows CI must copy and flush several 8 MiB databases alongside other persistence suites. + process.platform === 'win32' ? 120_000 : 30_000 ) })