Skip to content

🎥 Make videos programmatically with React

Update avoid-ffmpeg-stackoverflow.test.ts

Jonny Burger7400c405d9db
diff --git a/packages/renderer/src/test/avoid-ffmpeg-stackoverflow.test.ts b/packages/renderer/src/test/avoid-ffmpeg-stackoverflow.test.ts
index f5e8544410..f80191e020 100644
--- a/packages/renderer/src/test/avoid-ffmpeg-stackoverflow.test.ts
+++ b/packages/renderer/src/test/avoid-ffmpeg-stackoverflow.test.ts
@@ -1,9 +1,9 @@
import {roundVolumeToAvoidStackOverflow} from '../assets/round-volume-to-avoid-stack-overflow';
-test('Should avoid having more than 99 possible volumes to avoid FFMPEG exception', () => {
+test('Should avoid having more than 98 possible volumes to avoid FFMPEG exception', () => {
const thousandsOfValues = new Array(10000)
.fill(true)
.map((_, i) => i / 9999)
.map((t) => roundVolumeToAvoidStackOverflow(t));
- expect(new Set(thousandsOfValues).size).toBe(99);
+ expect(new Set(thousandsOfValues).size).toBe(98);
});