Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: make frameExtraction concurrency test path-separator safe on Windows (#11826)

[._.]/ Adam Eivy7125ccf5b1ad
diff --git a/server/services/videoGen/frameExtraction.test.js b/server/services/videoGen/frameExtraction.test.js
index 39de1c0d91..bd5b0f1aa2 100644
--- a/server/services/videoGen/frameExtraction.test.js
+++ b/server/services/videoGen/frameExtraction.test.js
@@ -1,6 +1,6 @@
import { describe, it, expect, vi, beforeEach, afterAll } from 'vitest';
import { mkdtempSync, writeFileSync, rmSync, mkdirSync } from 'fs';
-import { join } from 'path';
+import { join, dirname } from 'path';
import { tmpdir } from 'os';
const ID = '11111111-1111-4111-8111-111111111111';
@@ -24,7 +24,7 @@ vi.mock('../../lib/ffmpeg.js', async (importOriginal) => ({
vfrSyncArgs: async () => [],
runFfmpegProcess: vi.fn(async ({ args }) => {
const out = args[args.length - 1];
- scanDirs.push(out.replace(/\/cand-%03d\.png$/, ''));
+ scanDirs.push(dirname(out));
await new Promise((r) => { release = r; });
writeFileSync(out.replace('%03d', '001'), 'frame');
return { ok: true };