mirror of https://github.com/Chocobozzz/PeerTube
Add expect message to ease debug
parent
3733175b6b
commit
26818a73ba
|
@ -142,7 +142,7 @@ async function checkSavedLiveCleanup (hlsPath: string, savedResolutions: number[
|
||||||
const files = await readdir(hlsPath)
|
const files = await readdir(hlsPath)
|
||||||
|
|
||||||
// fragmented file and playlist per resolution + master playlist + segments sha256 json file
|
// 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) {
|
for (const resolution of savedResolutions) {
|
||||||
const fragmentedFile = files.find(f => f.endsWith(`-${resolution}-fragmented.mp4`))
|
const fragmentedFile = files.find(f => f.endsWith(`-${resolution}-fragmented.mp4`))
|
||||||
|
|
Loading…
Reference in New Issue