mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 11:34:44 -07:00
fix(core): update tests missed by preflight for benchmark changes
- Add isInteractive mock to loggers.test.ts cfg2 for GeminiClient - Update config.test.ts shell timeout test for non-interactive default (600s) and add interactive case (300s) - Update prompts.test.ts snapshots for new error recovery section
This commit is contained in:
@@ -958,8 +958,13 @@ describe('Server Config (config.ts)', () => {
|
||||
});
|
||||
|
||||
describe('Shell Tool Inactivity Timeout', () => {
|
||||
it('should default to 300000ms (300 seconds) when not provided', () => {
|
||||
it('should default to 600000ms (600 seconds) for non-interactive when not provided', () => {
|
||||
const config = new Config(baseParams);
|
||||
expect(config.getShellToolInactivityTimeout()).toBe(600000);
|
||||
});
|
||||
|
||||
it('should default to 300000ms (300 seconds) for interactive when not provided', () => {
|
||||
const config = new Config({ ...baseParams, interactive: true });
|
||||
expect(config.getShellToolInactivityTimeout()).toBe(300000);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user