Skip to content

Commit 69f761b

Browse files
committed
test: require both partial chunks in the Gemini call-ID test
The handler emits exactly one name partial and one arguments partial per synthesized call. Require both so the test fails when either chunk is missing.
1 parent eb7e970 commit 69f761b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/api/providers/__tests__/gemini.spec.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ describe("GeminiHandler", () => {
355355
const partialIds = chunks
356356
.filter((chunk) => chunk.type === "tool_call_partial")
357357
.map((chunk) => (chunk as { id: string }).id)
358-
expect(partialIds.length).toBeGreaterThan(0)
359-
// Both partial chunks of one synthesized call share one ID.
358+
// The handler emits one name partial and one arguments partial
359+
// for the synthesized call.
360+
expect(partialIds).toHaveLength(2)
360361
expect(new Set(partialIds).size).toBe(1)
361362
firstCallIds.push(partialIds[0])
362363
}

0 commit comments

Comments
 (0)