mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: add 120s timeout to all HEIF/HEIC integration tests for CI
Comprehensively adds { timeout: 120_000 } to every HEIF/HEIC
integration test across 40 test files. HEIF decoding on CI runners
is significantly slower than local, causing sporadic timeouts at
the default 5s or previous 60s limits.
This commit is contained in:
@@ -438,7 +438,7 @@ describe("Error handling", () => {
|
||||
|
||||
// ── Analyze endpoint HEIC handling ─────────────────────────────
|
||||
describe("Analyze endpoint HEIC handling", () => {
|
||||
it("analyze decodes HEIC input before analysis", async () => {
|
||||
it("analyze decodes HEIC input before analysis", { timeout: 120_000 }, async () => {
|
||||
const { body: payload, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "test.heic", contentType: "image/heic", content: HEIC },
|
||||
]);
|
||||
@@ -509,7 +509,7 @@ describe("Analyze endpoint invalid image", () => {
|
||||
|
||||
// ── HEIC input enhancement ──────────────────────────────────────
|
||||
describe("HEIC input enhancement", () => {
|
||||
it("enhances HEIC input image", async () => {
|
||||
it("enhances HEIC input image", { timeout: 120_000 }, async () => {
|
||||
const res = await postTool({ mode: "auto" }, HEIC, "test.heic", "image/heic");
|
||||
expect([200, 422]).toContain(res.statusCode);
|
||||
if (res.statusCode === 200) {
|
||||
@@ -519,7 +519,7 @@ describe("HEIC input enhancement", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("enhances HEIC in portrait mode", async () => {
|
||||
it("enhances HEIC in portrait mode", { timeout: 120_000 }, async () => {
|
||||
const res = await postTool(
|
||||
{ mode: "portrait", intensity: 60 },
|
||||
HEIC,
|
||||
|
||||
Reference in New Issue
Block a user