]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/video-transcoder.ts
Support transcoding options/encoders by plugins
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / video-transcoder.ts
index 631230f26f012d2725cb8cf82ce86b101a8fed23..5ad02df2fc786c95c6d9eca312313eedf8402ebe 100644 (file)
@@ -511,7 +511,9 @@ describe('Test video transcoding', function () {
 
     const resolutions = [ 240, 360, 480, 720, 1080 ]
     for (const r of resolutions) {
-      expect(await getServerFileSize(servers[1], `videos/${videoUUID}-${r}.mp4`)).to.be.below(60_000)
+      const path = `videos/${videoUUID}-${r}.mp4`
+      const size = await getServerFileSize(servers[1], path)
+      expect(size, `${path} not below ${60_000}`).to.be.below(60_000)
     }
   })