fix: increase timeout for remaining AVIF conversion tests (#153)

Extends the 120s AVIF timeout fix to format-matrix-comprehensive and
format-matrix-expanded test files (Integration shard 4/4 failures).
This commit is contained in:
SnapOtter
2026-05-18 18:16:07 +08:00
committed by GitHub
parent 395b93214e
commit b571165315
2 changed files with 4 additions and 2 deletions
@@ -927,7 +927,8 @@ describe("Extended conversion targets (core formats)", () => {
if (fmt.name.toLowerCase() === target.format) continue;
if (fmt.name === "AVIF" && target.format === "avif") continue;
it(`${fmt.name} -> ${target.format}`, async () => {
const testTimeout = target.format === "avif" ? 120_000 : 30_000;
it(`${fmt.name} -> ${target.format}`, { timeout: testTimeout }, async () => {
const res = await callTool("convert", fmt, { format: target.format });
if (!res) return;
expect(res.statusCode).toBe(200);
@@ -851,7 +851,8 @@ describe("SVG-to-raster", () => {
const SVG_OUTPUT_FORMATS = ["png", "jpg", "webp", "avif"] as const;
for (const outFmt of SVG_OUTPUT_FORMATS) {
it(`converts SVG to ${outFmt}`, async () => {
const testTimeout = outFmt === "avif" ? 120_000 : 30_000;
it(`converts SVG to ${outFmt}`, { timeout: testTimeout }, async () => {
const fixturePath = join(FORMATS_DIR, "sample.svg");
if (!existsSync(fixturePath)) return;