Skip to content

Commit 1c22c5b

Browse files
authored
Remove flakey test (#24837)
1 parent 1762c9c commit 1c22c5b

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

integration-tests/utf-bom-encoding.test.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*/
66

77
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
8-
import { writeFileSync, readFileSync } from 'node:fs';
9-
import { join, resolve } from 'node:path';
8+
import { writeFileSync } from 'node:fs';
9+
import { join } from 'node:path';
1010
import { TestRig } from './test-helper.js';
1111

1212
// BOM encoders
@@ -116,21 +116,4 @@ describe('BOM end-to-end integraion', () => {
116116
'BOM_OK UTF-32BE',
117117
);
118118
});
119-
120-
it('Can describe a PNG file', async () => {
121-
const imagePath = resolve(
122-
process.cwd(),
123-
'docs/assets/gemini-screenshot.png',
124-
);
125-
const imageContent = readFileSync(imagePath);
126-
const filename = 'gemini-screenshot.png';
127-
writeFileSync(join(rig.testDir!, filename), imageContent);
128-
const prompt = `What is shown in the image ${filename}?`;
129-
const output = await rig.run({ args: prompt });
130-
await rig.waitForToolCall('read_file');
131-
const lower = output.toLowerCase();
132-
// The response is non-deterministic, so we just check for some
133-
// keywords that are very likely to be in the response.
134-
expect(lower.includes('gemini')).toBeTruthy();
135-
});
136119
});

0 commit comments

Comments
 (0)