test(sdk): fix flaky agent integration test missing fakeResponses

This commit is contained in:
Bryan Morgan
2026-02-26 07:55:16 -05:00
parent c496a4513f
commit 7d71eb57ec
@@ -144,11 +144,14 @@ describe('GeminiCliAgent Integration', () => {
});
it('propagates errors from dynamic instructions', async () => {
const goldenFile = getGoldenPath('agent-static-instructions');
const agent = new GeminiCliAgent({
instructions: () => {
throw new Error('Dynamic instruction failure');
},
model: 'gemini-2.0-flash',
recordResponses: RECORD_MODE ? goldenFile : undefined,
fakeResponses: RECORD_MODE ? undefined : goldenFile,
});
const session = agent.session();