mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
test(producer): preserve parallel plan watchdog coverage
This commit is contained in:
@@ -240,11 +240,11 @@ describe("runCaptureStreamingStage", () => {
|
||||
process.env.HF_DE_STALL_MS = "50";
|
||||
const { runCaptureStreamingStage } = await import("./captureStreamingStage.js");
|
||||
const cfg = { forceScreenshot: false, ffmpegStreamingTimeout: 3_600_000 };
|
||||
const baseInput = createInput(cfg);
|
||||
const input = {
|
||||
...createInput(cfg),
|
||||
...baseInput,
|
||||
totalFrames: 100,
|
||||
workerCount: 2,
|
||||
forceParallelStream: true,
|
||||
plan: { ...baseInput.plan, workerCount: 2, forceParallelStream: true },
|
||||
};
|
||||
|
||||
let caught: unknown;
|
||||
@@ -274,11 +274,11 @@ describe("runCaptureStreamingStage", () => {
|
||||
const controller = new AbortController();
|
||||
const { runCaptureStreamingStage } = await import("./captureStreamingStage.js");
|
||||
const cfg = { forceScreenshot: false, ffmpegStreamingTimeout: 3_600_000 };
|
||||
const baseInput = createInput(cfg);
|
||||
const input = {
|
||||
...createInput(cfg),
|
||||
...baseInput,
|
||||
totalFrames: 100,
|
||||
workerCount: 2,
|
||||
forceParallelStream: true,
|
||||
plan: { ...baseInput.plan, workerCount: 2, forceParallelStream: true },
|
||||
abortSignal: controller.signal,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user