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

test: pin the split piece count just past an exact multiple of the take limit (#8977)

[._.]/ Adam Eivyc1926e59dad9
diff --git a/server/lib/musicVideoShotTiming.test.js b/server/lib/musicVideoShotTiming.test.js
index d57eeeed05..63e15165a4 100644
--- a/server/lib/musicVideoShotTiming.test.js
+++ b/server/lib/musicVideoShotTiming.test.js
@@ -67,7 +67,7 @@ describe('planShotSplit', () => {
expect(planShotSplit({ startSec: 5, endSec: 15, maxSec: 10 })).toMatchObject({ ok: false, code: 'MUSIC_VIDEO_SPLIT_NOT_NEEDED' });
expect(planShotSplit({ startSec: 5, endSec: 15.01, maxSec: 10 }).pieces).toHaveLength(2);
// Just past an exact multiple still needs the extra piece; float noise at it does not.
- expect(planShotSplit({ startSec: 0, endSec: 20.00001, maxSec: 10 }).pieces).toHaveLength(3);
+ expect(planShotSplit({ startSec: 0, endSec: 20.000004, maxSec: 10 }).pieces).toHaveLength(3);
expect(32.2 - 2.2).toBeGreaterThan(30);
expect(planShotSplit({ startSec: 2.2, endSec: 32.2, maxSec: 10 }).pieces).toHaveLength(3);
});