diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-19 14:49:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-19 14:49:00 +0200 |
commit | 26818a73ba0d7fd53ca69eba0c8e525f3670b5a8 (patch) | |
tree | eba0309a93aaa03ca62abc098e98524f40e5ce7e | |
parent | 3733175b6b53d8f9cdc3e1752110a030508907af (diff) | |
download | PeerTube-26818a73ba0d7fd53ca69eba0c8e525f3670b5a8.tar.gz PeerTube-26818a73ba0d7fd53ca69eba0c8e525f3670b5a8.tar.zst PeerTube-26818a73ba0d7fd53ca69eba0c8e525f3670b5a8.zip |
Add expect message to ease debug
-rw-r--r-- | server/tests/shared/live.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/shared/live.ts b/server/tests/shared/live.ts index 793503311..8f837c97a 100644 --- a/server/tests/shared/live.ts +++ b/server/tests/shared/live.ts | |||
@@ -142,7 +142,7 @@ async function checkSavedLiveCleanup (hlsPath: string, savedResolutions: number[ | |||
142 | const files = await readdir(hlsPath) | 142 | const files = await readdir(hlsPath) |
143 | 143 | ||
144 | // fragmented file and playlist per resolution + master playlist + segments sha256 json file | 144 | // fragmented file and playlist per resolution + master playlist + segments sha256 json file |
145 | expect(files).to.have.lengthOf(savedResolutions.length * 2 + 2) | 145 | expect(files, `Directory content: ${files.join(', ')}`).to.have.lengthOf(savedResolutions.length * 2 + 2) |
146 | 146 | ||
147 | for (const resolution of savedResolutions) { | 147 | for (const resolution of savedResolutions) { |
148 | const fragmentedFile = files.find(f => f.endsWith(`-${resolution}-fragmented.mp4`)) | 148 | const fragmentedFile = files.find(f => f.endsWith(`-${resolution}-fragmented.mp4`)) |