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: pin darwin in the retired-default test instead of skipping it off-Windows

[._.]/ Adam Eivy8f6dcd1aeb43
diff --git a/server/lib/mediaModels.test.js b/server/lib/mediaModels.test.js
index c43ce51d9b..0c43caeb9c 100644
--- a/server/lib/mediaModels.test.js
+++ b/server/lib/mediaModels.test.js
@@ -566,7 +566,15 @@ describe('mediaModels registry', () => {
const logSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
const { loadMediaModels, getDefaultVideoModelId } = await import('./mediaModels.js');
expect(loadMediaModels().video.defaultMlx).toBe('ltx23_distilled_q4');
- if (process.platform !== 'win32') expect(getDefaultVideoModelId()).toBe('ltx23_distilled_q4');
+ // Pinned rather than skipped off-Darwin: the repointed default lives in the
+ // MLX bucket, which only a Mac resolves — pinning runs the assertion on
+ // every runner instead of silently skipping it on the Linux one.
+ const restore = pinPlatform('darwin');
+ try {
+ expect(getDefaultVideoModelId()).toBe('ltx23_distilled_q4');
+ } finally {
+ restore();
+ }
logSpy.mockRestore();
});