Add expect message to ease debug
This commit is contained in:
parent
3733175b6b
commit
26818a73ba
1 changed files with 1 additions and 1 deletions
|
@ -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`))
|
||||
|
|
Loading…
Reference in a new issue