mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user