1
0
Fork 0

Add expect message to ease debug

This commit is contained in:
Chocobozzz 2023-05-19 14:49:00 +02:00
parent 3733175b6b
commit 26818a73ba
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View 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`))