Skip to content

Write HTML. Render video. Built for agents.

test(engine): give the 150-track audio mix test a Windows-sized budget (#3587)

James Russodb92f8ab592e
diff --git a/packages/engine/src/services/audioMixer.test.ts b/packages/engine/src/services/audioMixer.test.ts
index 9a1091e3e1..e7b1fb5ac7 100644
--- a/packages/engine/src/services/audioMixer.test.ts
+++ b/packages/engine/src/services/audioMixer.test.ts
@@ -107,7 +107,7 @@ describe("processCompositionAudio", () => {
afterEach(() => {
vi.unstubAllGlobals();
- runFfmpegMock.mockClear();
+ runFfmpegMock.mockReset();
extractAudioMetadataMock.mockReset();
extractAudioMetadataMock.mockResolvedValue({
durationSeconds: 2,
@@ -1098,7 +1098,9 @@ describe("processCompositionAudio", () => {
// indefinite `apad` to cap the padded stream at composition duration.
expect((filter?.match(/atrim=/g) ?? []).length).toBe(trackCount * 2);
expect((filter?.match(/apad,/g) ?? []).length).toBe(trackCount);
- });
+ // 150 real files + 150 existence checks: ~60ms on Linux, but well past the 5s
+ // default on the Windows lane, where each file create is orders slower.
+ }, 30_000);
it("renumbers timestamps between apad and atrim on every mixed branch", async () => {
// Regression: `apad` then `atrim` is the portable pad-to-length shape --