]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add expect message to ease debug
authorChocobozzz <me@florianbigard.com>
Fri, 19 May 2023 12:49:00 +0000 (14:49 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 19 May 2023 12:49:00 +0000 (14:49 +0200)
server/tests/shared/live.ts

index 7935033110cff50e8324847454c0853bd692f9dc..8f837c97a41995f9a870fa0ba93bfa9f6c1eecfd 100644 (file)
@@ -142,7 +142,7 @@ async function checkSavedLiveCleanup (hlsPath: string, savedResolutions: number[
   const files = await readdir(hlsPath)
 
   // fragmented file and playlist per resolution + master playlist + segments sha256 json file
-  expect(files).to.have.lengthOf(savedResolutions.length * 2 + 2)
+  expect(files, `Directory content: ${files.join(', ')}`).to.have.lengthOf(savedResolutions.length * 2 + 2)
 
   for (const resolution of savedResolutions) {
     const fragmentedFile = files.find(f => f.endsWith(`-${resolution}-fragmented.mp4`))