Skip to content

Commit 768d2f3

Browse files
committed
fix: align chat agent e2e stream assertions
1 parent 1427f8d commit 768d2f3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

e2e/stream-resource-e2e/src/chat-agent.e2e.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ describe.skipIf(!process.env['LANGGRAPH_URL'])('chat-agent e2e', () => {
3636
}
3737

3838
expect(chunks.length).toBeGreaterThan(0);
39-
const messageChunks = chunks.filter((c: any) => c.event === 'messages');
39+
const messageChunks = chunks.filter(
40+
(c: any) => c.event === 'messages/partial' || c.event === 'messages/metadata'
41+
);
4042
expect(messageChunks.length).toBeGreaterThan(0);
4143
});
4244

0 commit comments

Comments
 (0)