From 2b4706f193c6d42a9bfa630d8f0e009aaa3c4b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Sun, 22 Nov 2026 00:50:54 +0000 Subject: [PATCH] test(engine): the frame-tag checks get the time a real encode needs (#8415) They run ffmpeg and ffprobe like the raw SDR colour check, which already allows 30 s; at vitest's 5 s default a busy Windows runner timed one out. --- .../src/services/streamingEncoder.test.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/engine/src/services/streamingEncoder.test.ts b/packages/engine/src/services/streamingEncoder.test.ts index a02f31df31..b04b7130cd 100644 --- a/packages/engine/src/services/streamingEncoder.test.ts +++ b/packages/engine/src/services/streamingEncoder.test.ts @@ -1296,17 +1296,22 @@ describe.skipIf(spawnSync("ffmpeg", ["-version"]).status !== 0)( } }; const tiny = { width: 64, height: 16 }; + const REAL_ENCODE_TIMEOUT_MS = 30_000; it.each([ ["captured frames", {}], ["raw RGB frames", { rawInputFormat: "rgb48le" as const }], - ])("tags BT.709 on %s, so an encoder that reads only them tags the stream", (_, extra) => { - const args = buildStreamingArgs({ ...baseSdr, ...tiny, ...extra }, "o.mp4"); + ])( + "tags BT.709 on %s, so an encoder that reads only them tags the stream", + (_, extra) => { + const args = buildStreamingArgs({ ...baseSdr, ...tiny, ...extra }, "o.mp4"); - expect(streamTagsThrough(args, ["-c:v", "libx264", "-preset", "ultrafast"])).toBe( - "bt709,bt709,bt709", - ); - }); + expect(streamTagsThrough(args, ["-c:v", "libx264", "-preset", "ultrafast"])).toBe( + "bt709,bt709,bt709", + ); + }, + REAL_ENCODE_TIMEOUT_MS, + ); it.each([ [baseHdrPq, "smpte2084", null], @@ -1327,6 +1332,7 @@ describe.skipIf(spawnSync("ffmpeg", ["-version"]).status !== 0)( expect(streamTagsThrough(args, x265)).toBe(`bt2020nc,${trc},bt2020`); }, + REAL_ENCODE_TIMEOUT_MS, ); }, );