From 43b006af2a7eedfcedda8838a8bf2da844764fbe Mon Sep 17 00:00:00 2001 From: liukx0205 Date: Fri, 6 Nov 2026 15:17:46 +0800 Subject: [PATCH] test(goal): assert the durable blocking operation --- packages/goal/goal-round-driver/tests/goal-round-driver.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/goal/goal-round-driver/tests/goal-round-driver.spec.ts b/packages/goal/goal-round-driver/tests/goal-round-driver.spec.ts index c9be135ea1..35b2d0c3ee 100644 --- a/packages/goal/goal-round-driver/tests/goal-round-driver.spec.ts +++ b/packages/goal/goal-round-driver/tests/goal-round-driver.spec.ts @@ -738,7 +738,7 @@ describe('same-session goal driving', () => { await admission.promise expect(test.ctx.goals.get(test.agent)).toMatchObject({ phase: 'active', roundsStarted: 0 }) - expect(test.agent.session.snapshotEvents().some(event => event.type === 'goal/blocked')).toBe(false) + expect(test.agent.session.snapshotEvents().some(event => event.type === 'goal/change' && event.data.operation === 'block')).toBe(false) }) it('blocks the goal when a custom agent rejects the otherwise valid follow-up', async () => {