From 4176e227cb18c40e13f30f4634d128cc3169e9d4 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 21 May 2018 13:14:29 +0200 Subject: Fixing #626 with ffmpeg's low default audio bitrate --- server/tests/utils/videos/videos.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/tests/utils') diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index 8c49eb02b..a9d449c58 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts @@ -522,7 +522,9 @@ async function completeVideoCheck ( const minSize = attributeFile.size - ((10 * attributeFile.size) / 100) const maxSize = attributeFile.size + ((10 * attributeFile.size) / 100) - expect(file.size).to.be.above(minSize).and.below(maxSize) + expect(file.size, + 'File size for resolution ' + file.resolution.label + ' outside confidence interval.') + .to.be.above(minSize).and.below(maxSize) { await testImage(url, attributes.thumbnailfile || attributes.fixture, videoDetails.thumbnailPath) -- cgit v1.2.3