test(session): exclude interval fallback from mandatory checkpoint

This commit is contained in:
Tianyi Cui committed 2026-09-14 16:09:15 +08:00
1 parent a90d8df582
commit 3ba25cd4cb
1 file changed
+2
@@ -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)