From 26818a73ba0d7fd53ca69eba0c8e525f3670b5a8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 May 2023 14:49:00 +0200 Subject: [PATCH] Add expect message to ease debug --- server/tests/shared/live.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[ 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`)) -- 2.41.0