diff --git a/tests/storage-full-flip.test.ts b/tests/storage-full-flip.test.ts index 61b80044b2..b7583b5420 100644 --- a/tests/storage-full-flip.test.ts +++ b/tests/storage-full-flip.test.ts @@ -222,6 +222,9 @@ test("#3818 ④ verifyDrift in the wire; drifted session reads the envelope whil sh.record = () => {}; (session.stats as { requests: number }).requests = 99; store.scheduleSave(session); + // Commit the v2 envelope synchronously: a fixed 120ms settle races a + // slow FS (win/node24 runner saw the v1 envelope and served 2). + assert.ok(store.flushSync(session), "v2 envelope committed"); await settle(); sh.record = realRecord;