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:
@@ -717,7 +717,7 @@ describe("svg-to-raster", () => {
|
||||
|
||||
// ── Branch coverage: HEIF output with preview (line 363, 404) ───────
|
||||
|
||||
it("converts to heif format and generates a preview", async () => {
|
||||
it("converts to heif format and generates a preview", { timeout: 120_000 }, async () => {
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "test.svg", contentType: "image/svg+xml", content: SVG },
|
||||
{ name: "settings", content: JSON.stringify({ outputFormat: "heif" }) },
|
||||
@@ -997,7 +997,7 @@ describe("svg-to-raster", () => {
|
||||
|
||||
// ── Branch coverage: batch with heif output ────────────────────────
|
||||
|
||||
it("batch converts SVGs to heif format", async () => {
|
||||
it("batch converts SVGs to heif format", { timeout: 120_000 }, async () => {
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "a.svg", contentType: "image/svg+xml", content: SVG },
|
||||
{ name: "file", filename: "b.svg", contentType: "image/svg+xml", content: SVG },
|
||||
@@ -1063,7 +1063,7 @@ describe("svg-to-raster", () => {
|
||||
|
||||
// ── Branch coverage: heif + background color combination ───────────
|
||||
|
||||
it("converts to heif format with background color applied", async () => {
|
||||
it("converts to heif format with background color applied", { timeout: 120_000 }, async () => {
|
||||
const { body, contentType } = createMultipartPayload([
|
||||
{ name: "file", filename: "test.svg", contentType: "image/svg+xml", content: SVG },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user