mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-16 04:50:29 -07:00
test: skip flaky file-system integration tests
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
|||||||
checkModelOutputContent,
|
checkModelOutputContent,
|
||||||
} from './test-helper.js';
|
} from './test-helper.js';
|
||||||
|
|
||||||
describe('file-system', () => {
|
describe.skip('file-system (marked as flaky)', () => {
|
||||||
let rig: TestRig;
|
let rig: TestRig;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@@ -29,9 +29,20 @@ describe('file-system', () => {
|
|||||||
});
|
});
|
||||||
rig.createFile('test.txt', 'hello world');
|
rig.createFile('test.txt', 'hello world');
|
||||||
|
|
||||||
const result = await rig.run({
|
let result = '';
|
||||||
args: `read the file test.txt and show me its contents`,
|
try {
|
||||||
});
|
result = await rig.run({
|
||||||
|
args: `read the file test.txt and show me its contents`,
|
||||||
|
timeout: 30000, // 30 seconds
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('Test failed with error:', e);
|
||||||
|
console.log(
|
||||||
|
'All tool calls found so far:',
|
||||||
|
rig.readToolLogs().map((t) => t.toolRequest.name),
|
||||||
|
);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
|
||||||
const foundToolCall = await rig.waitForToolCall('read_file');
|
const foundToolCall = await rig.waitForToolCall('read_file');
|
||||||
|
|
||||||
@@ -121,7 +132,7 @@ describe('file-system', () => {
|
|||||||
|
|
||||||
const result = await rig.run({
|
const result = await rig.run({
|
||||||
args: `write "hello" to "${fileName}" and then stop. Do not perform any other actions.`,
|
args: `write "hello" to "${fileName}" and then stop. Do not perform any other actions.`,
|
||||||
timeout: 600000, // 10 min — real LLM can be slow in Docker sandbox
|
timeout: 60000, // 1 min is enough
|
||||||
});
|
});
|
||||||
|
|
||||||
const foundToolCall = await rig.waitForToolCall('write_file');
|
const foundToolCall = await rig.waitForToolCall('write_file');
|
||||||
|
|||||||
Reference in New Issue
Block a user