diff --git a/packages/session/session-projection-cache/tests/cache.spec.ts b/packages/session/session-projection-cache/tests/cache.spec.ts index a72466fbfe..f2aed29df1 100644 --- a/packages/session/session-projection-cache/tests/cache.spec.ts +++ b/packages/session/session-projection-cache/tests/cache.spec.ts @@ -201,6 +201,8 @@ afterEach(async () => { describe('SessionProjectionCache write policy', () => { it('writes a durable checkpoint at turn/end (mandatory point)', async () => { const { ctx, root } = await harness() + // The interval cannot substitute for the mandatory turn/end trigger. + vi.useFakeTimers({ toFake: ['setTimeout', 'clearTimeout'] }) const id = SessionId('turn-end') const created = whenWritten(ctx, id) const session = ctx.sessions.create(id)