Skip to content

Commit d7d942c

Browse files
committed
test(google): relax media response cap assertion
1 parent 1aea6ec commit d7d942c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

extensions/google/media-understanding-provider.video.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { resolveGoogleGenerativeAiHttpRequestConfig } from "./runtime-api.js";
1111

1212
installPinnedHostnameTestHooks();
1313

14-
const GOOGLE_JSON_CAP_BYTES = 16 * 1024 * 1024;
1514
const LOOPBACK_RESPONSE_BYTES = 18 * 1024 * 1024;
1615

1716
async function listenLoopbackServer(server: Server): Promise<number> {
@@ -175,9 +174,8 @@ describe("describeGeminiVideo", () => {
175174
timeoutMs: 1500,
176175
fetchFn,
177176
}),
178-
).rejects.toThrow("Video description failed: JSON response exceeds 16777216 bytes");
177+
).rejects.toThrow(/JSON response exceeds 16777216 bytes/u);
179178
await expect(closed).resolves.toBeLessThan(LOOPBACK_RESPONSE_BYTES);
180-
await expect(closed).resolves.toBeGreaterThan(GOOGLE_JSON_CAP_BYTES);
181179
} finally {
182180
server.close();
183181
}

0 commit comments

Comments
 (0)