From 8fd7490d8f8178190ab70b689cc5fabb547f6004 Mon Sep 17 00:00:00 2001 From: tanzhenxin Date: Wed, 17 Dec 2025 09:27:25 +0800 Subject: [PATCH] remove one flaky integration test --- integration-tests/utf-bom-encoding.test.ts | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/integration-tests/utf-bom-encoding.test.ts b/integration-tests/utf-bom-encoding.test.ts index 4429b700..bb682de1 100644 --- a/integration-tests/utf-bom-encoding.test.ts +++ b/integration-tests/utf-bom-encoding.test.ts @@ -5,8 +5,8 @@ */ import { describe, it, expect, beforeAll, afterAll } from 'vitest'; -import { writeFileSync, readFileSync } from 'node:fs'; -import { join, resolve } from 'node:path'; +import { writeFileSync } from 'node:fs'; +import { join } from 'node:path'; import { TestRig } from './test-helper.js'; // Windows skip (Option A: avoid infra scope) @@ -121,21 +121,4 @@ d('BOM end-to-end integration', () => { 'BOM_OK UTF-32BE', ); }); - - it('Can describe a PNG file', async () => { - const imagePath = resolve( - process.cwd(), - 'docs/assets/gemini-screenshot.png', - ); - const imageContent = readFileSync(imagePath); - const filename = 'gemini-screenshot.png'; - writeFileSync(join(dir, filename), imageContent); - const prompt = `What is shown in the image ${filename}?`; - const output = await rig.run(prompt); - await rig.waitForToolCall('read_file'); - const lower = output.toLowerCase(); - // The response is non-deterministic, so we just check for some - // keywords that are very likely to be in the response. - expect(lower.includes('gemini')).toBeTruthy(); - }); });