mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: increase all HEIF/HEIC integration test timeouts to 120s for CI
The sharpening HEIF test was timing out at 60s in GitHub Actions. Bumps all remaining HEIF/HEIC test timeouts from 60s to 120s across 14 integration test files for consistency with vectorize.
This commit is contained in:
@@ -829,7 +829,7 @@ describe("Barcode Read", () => {
|
||||
|
||||
// ── HEIF format input ─────────────────────────────────────────────
|
||||
|
||||
it("reads barcodes from a HEIF image", { timeout: 60_000 }, async () => {
|
||||
it("reads barcodes from a HEIF image", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "content", "motorcycle.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "photo.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
@@ -573,7 +573,7 @@ describe("Border", () => {
|
||||
expect(result.processedSize).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("handles HEIF input (motorcycle.heif)", { timeout: 60_000 }, async () => {
|
||||
it("handles HEIF input (motorcycle.heif)", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "content", "motorcycle.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "photo.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
@@ -620,7 +620,7 @@ describe("Bulk Rename", () => {
|
||||
|
||||
// ── HEIF file handling ─────────────────────────────────────────
|
||||
|
||||
it("renames HEIF files preserving extension", { timeout: 60_000 }, async () => {
|
||||
it("renames HEIF files preserving extension", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "formats", "sample.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "photo.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
@@ -1457,7 +1457,7 @@ describe("Collage", () => {
|
||||
|
||||
// ── HEIF format input ─────────────────────────────────────────────
|
||||
|
||||
it("handles HEIF input images", { timeout: 60_000 }, async () => {
|
||||
it("handles HEIF input images", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "content", "motorcycle.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "f1", filename: "a.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
@@ -382,7 +382,7 @@ describe("Solid white image", () => {
|
||||
|
||||
// ── HEIF input ─────────────────────────────────────────────────
|
||||
describe("HEIF input", () => {
|
||||
it("extracts palette from HEIF image", { timeout: 60_000 }, async () => {
|
||||
it("extracts palette from HEIF image", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "content", "motorcycle.heif"));
|
||||
const { body: payload, contentType } = makeFilePayload(HEIF, "photo.heif", "image/heif");
|
||||
const res = await app.inject({
|
||||
|
||||
@@ -776,7 +776,7 @@ describe("Compare", () => {
|
||||
|
||||
// ── HEIF format input ─────────────────────────────────────────────
|
||||
|
||||
it("compares HEIF image with PNG", { timeout: 60_000 }, async () => {
|
||||
it("compares HEIF image with PNG", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "content", "motorcycle.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "a.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
@@ -1012,7 +1012,7 @@ describe("Compose", () => {
|
||||
|
||||
// ── HEIF format input ─────────────────────────────────────────────
|
||||
|
||||
it("handles HEIF base image", { timeout: 60_000 }, async () => {
|
||||
it("handles HEIF base image", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "content", "motorcycle.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "base.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
@@ -682,7 +682,7 @@ describe("favicon", () => {
|
||||
|
||||
// ── HEIF format input ────────────────────────────────────────────
|
||||
|
||||
it("generates favicons from HEIF input", { timeout: 60_000 }, async () => {
|
||||
it("generates favicons from HEIF input", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "content", "motorcycle.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "photo.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
@@ -601,7 +601,7 @@ describe("Authentication", () => {
|
||||
|
||||
// ── HEIF input ─────────────────────────────────────────────────
|
||||
describe("HEIF input", () => {
|
||||
it("enhances HEIF (sample.heif) input", { timeout: 60_000 }, async () => {
|
||||
it("enhances HEIF (sample.heif) input", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "formats", "sample.heif"));
|
||||
const res = await postTool({ mode: "auto" }, HEIF, "sample.heif", "image/heif");
|
||||
expect([200, 422]).toContain(res.statusCode);
|
||||
|
||||
@@ -589,7 +589,7 @@ describe("Info", () => {
|
||||
|
||||
// ── HEIF format info ──────────────────────────────────────────
|
||||
|
||||
it("returns correct metadata for HEIF (sample.heif) image", { timeout: 60_000 }, async () => {
|
||||
it("returns correct metadata for HEIF (sample.heif) image", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "formats", "sample.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "sample.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
@@ -739,7 +739,7 @@ describe("Authentication", () => {
|
||||
|
||||
// ── HEIF input handling ───────────────────────────────────────
|
||||
describe("HEIF input", () => {
|
||||
it("optimizes HEIF (sample.heif) input to webp", { timeout: 60_000 }, async () => {
|
||||
it("optimizes HEIF (sample.heif) input to webp", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "formats", "sample.heif"));
|
||||
const res = await postTool({ format: "webp" }, HEIF, "sample.heif", "image/heif");
|
||||
// HEIF decode may not be available
|
||||
|
||||
@@ -247,7 +247,7 @@ describe("Error handling", () => {
|
||||
|
||||
// ── HEIC input handling ─────────────────────────────────────────
|
||||
describe("HEIC input", () => {
|
||||
it("processes HEIC image with adaptive sharpening", async () => {
|
||||
it("processes HEIC image with adaptive sharpening", { timeout: 120_000 }, async () => {
|
||||
const HEIC = readFileSync(join(FIXTURES, "test-200x150.heic"));
|
||||
const res = await postTool({ method: "adaptive" }, HEIC, "photo.heic", "image/heic");
|
||||
expect(res.statusCode).toBe(200);
|
||||
@@ -430,7 +430,7 @@ describe("Denoise off", () => {
|
||||
|
||||
// ── HEIC with unsharp-mask method ──────────────────────────────
|
||||
describe("HEIC with different methods", () => {
|
||||
it("processes HEIC with unsharp-mask", async () => {
|
||||
it("processes HEIC with unsharp-mask", { timeout: 120_000 }, async () => {
|
||||
const HEIC = readFileSync(join(FIXTURES, "test-200x150.heic"));
|
||||
const res = await postTool(
|
||||
{ method: "unsharp-mask", amount: 200 },
|
||||
@@ -441,7 +441,7 @@ describe("HEIC with different methods", () => {
|
||||
expect(res.statusCode).toBe(200);
|
||||
});
|
||||
|
||||
it("processes HEIC with high-pass", async () => {
|
||||
it("processes HEIC with high-pass", { timeout: 120_000 }, async () => {
|
||||
const HEIC = readFileSync(join(FIXTURES, "test-200x150.heic"));
|
||||
const res = await postTool(
|
||||
{ method: "high-pass", strength: 60 },
|
||||
@@ -466,7 +466,7 @@ describe("HEIF input", () => {
|
||||
expect(res.statusCode).toBe(200);
|
||||
const result = JSON.parse(res.body);
|
||||
expect(result.downloadUrl).toBeDefined();
|
||||
}, 60_000);
|
||||
}, 120_000);
|
||||
});
|
||||
|
||||
// ── Animated GIF input ──────────────────────────────────────────
|
||||
|
||||
@@ -1389,7 +1389,7 @@ describe("Split", () => {
|
||||
|
||||
// ── HEIF format input ─────────────────────────────────────────────
|
||||
|
||||
it("splits a HEIF input image", { timeout: 60_000 }, async () => {
|
||||
it("splits a HEIF input image", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "content", "motorcycle.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "photo.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
@@ -1487,7 +1487,7 @@ describe("Stitch", () => {
|
||||
|
||||
// ── HEIF format input ─────────────────────────────────────────────
|
||||
|
||||
it("handles HEIF input in stitching", { timeout: 60_000 }, async () => {
|
||||
it("handles HEIF input in stitching", { timeout: 120_000 }, async () => {
|
||||
const HEIF = readFileSync(join(FIXTURES, "content", "motorcycle.heif"));
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "f1", filename: "a.heif", contentType: "image/heif", content: HEIF },
|
||||
|
||||
Reference in New Issue
Block a user